Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to create new issues only for newly selected custom field values during repetitive transitions.

Info
iconfalse
titleUse Case
When In Progress transition is being performed, issues need to be created for selected values of custom fields. When a custom field is updated with additional values and In Progress transition is performed again, an issue needs to be created for only the newly added custom field value. No duplicate issues should be created for previously selected custom field values.

Step-by-step guide

  1. Log into Jira as a Jira Administrator and click  > Issues  > Projects.
  2. Navigate to the intended project and click Project Settings > Intended Workflow.
  3. Select the target transition and add the Create Issue post function. 
  4. Select Conditions and Configurations.
  5. Add JQL query as displayed in the image below, to return issues that are linked to original issue with custom field value A.

          Image Removed  Image Added

     6. Add conditions in the Conditions section as displayed in the image below, to transition only when all conditions are true.

          Image RemovedImage Added

      7. Set the custom field value to A in the Custom Fields tab.

          Image RemovedImage Added

      8. Update the Post Function; Sample Post Function looks like below

          Image RemovedImage Added

      9. Repeat the steps 3 to 8 for each custom field value. Sample post functions should look like:

           Image RemovedImage Added

      10. Publish the workflow before performing the transition. You see that the issues are created only for 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.