This article explains how explains how to create new issues only for newly selected custom field values during repetitive transitions.
Info | ||||
---|---|---|---|---|
| ||||
For example when When In Progress transition is executed, issues need to be created for selected values of Custom field. When Custom field is updated with additional new value and In Progress transition is executed again, an issue needs to be created for only the newly added value of Custom field. No duplicate issue should be created for previously selected values of custom field. |
Step-by-step guide:
- Log into Jira as a Jira Administrator and click > Issues > Projects.
- Navigate to the intended project and click on Project Settings > Click on intended Intended Workflow.
- Click on Select the target transition and add "the Create Issue" post post function.
- Click on Select Conditions and Configurations.
- Add below JQL query and that should as displayed in the image below, to return issues that are linked to original issue with custom field value A.
6. Add below conditions in Conditions tab and transition will be executed the Conditions section as displayed in the image below, to transition only when all conditions are true.
7. Set Custom Field the custom field value to A in the Custom Fields section tab.
8. Update the Post Function; Sample Post Function looks like below
9. Repeat the steps 3 to 8 for each value of custom field ; Sample Post Functions value. Sample post functions should look like below.:
10. Publish the workflow before executing performing the transition. You will be able to see that the issues will be are created only for only the newly selected value of custom field during repetitive transitions.
Info |
---|
It is recommend to test this scenario in a test environment before implementing it in production. |