Versions Compared

Key

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

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

Info
iconfalse
titleUse Case
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:

  1. Log into Jira as a Jira Administrator and click Image Modified > Issues  > Projects.
  2. Navigate to the intended project and click on Project Settings > Click on intended Intended Workflow.
  3. Click on Select the target transition and add "the Create Issue"  post  post function. 
  4. Click on Select Conditions and Configurations.
  5. 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.

          Image Removed Image Added

     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.

          Image RemovedImage Added

      7. Set Custom Field the custom field value to A in the Custom Fields section 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 value of custom field ; Sample Post Functions value. Sample post functions should look like below.:

           Image RemovedImage Added

      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.