This article helps to understand how the post function executes the action based on the checks performed by date compare precondition.
Instructions
Please note, the steps below are added on the Resolve transition, to compare the Due date and Resolved date and to execute the action accordingly.
Edit the workflow that is associated with your project
Select the Resolve transition
Select the Post Functions tab and click Add post function
Select the Pre condition: Date Compare(JSU) and click Add
Select the parameters to add the condition as Resolved <= Due Date and click Add
Select the Update Any Issue Field (JSU) post function and click Add
Set pre condition must be True and select the field to be updated with a preferred value and click Add
In exceptional cases like for Sprint field