This article gives step by step instructions on how to copy the value of Next Due Date custom field into the Due Date field by using the Create on Transition app.
Instructions
For example in the below screenshot, "next due date" is a "Date" custom field whose value is set to 18/Dec/19. We will write a post function to copy this value when you do a transition.
Here are the steps to follow to update the post function in a workflow and copy the "next due date" value into the due date field. To get the id of the custom field, please go to step 9.
- Log in as an Administrator into your Jira instance.
- Select Projects from menu bar and click on the project name. If the project is not visible from the drop-down, click on View all projects and select the relevant project.
- Click on the Project settings in the project page to administer the project:
- Go to workflows section and click on the pencil icon adjacent to the relevant workflow scheme:
- Click on the transition, that has the Post Function to be updated. For example, Done is the Post Function in the below screenshot:
- Click on Post Functions and then click on the pencil icon.
Click on Detailed Fields and then use the substitution variable, %original_customfield_10300% in the Due date field.
- Publish the Workflow and do the Done Transition in the JIRA issue. As such, when you click on the Done status in the Jira issue, the value of the next due date is copied into the Due date custom field in the corresponding issue.
Please follow the below steps to get the next due date custom field ID:
Log in as an Administrator in your Jira instance.
Click on Issues from the dropdown list
Go to Issues from the top menu bar and click on Custom Fields
Search for the next due date custom field and click on Cogwheel( to the right of it and then click on Configure button.
Custom Field ID is shown as customFieldId from the URL.