...
Edit the workflow that is associated with your project.
Select the Resolve transition.
Select the Post Functions tab and click the Add post function.
Select the Precondition: Date Compare(JSU) and clickAdd
Select the parameters to add the condition as Resolved <= Due Date and click Add.
This precondition checks only the date part and executes the action. If you want the precondition to check the time along with the date and perform the action, then select the Include time part checkbox option.
Select the Update Any Issue Field (JSU) post function and click Add
Precondition should be set to True and select the field to be updated with a preferred value and click Add
In exceptional cases like the Sprint field, the Field Value should be the id of sprint instead of sprint name.Now, select the parameters to add the condition as Resolved > Due Date and click Add
This precondition also checks only the date part and executes the action. If you want the precondition to check the time along with the date and perform the action then select the Include time part checkbox option.
Select Update Any Issue Field (JSU) post function and click Add to update the field when the above precondition is true.
The precondition should be marked as True and select the field to be updated with a preferred value and click Add
Once all the preconditions and post functions are added, re-arrange the order of the configuration as shown below:
Publish the workflow.
In order to test this scenario:
Create an issue by providing a value for the Due date field.
Transition the issue to check if the fields are updated accordingly.
...