Versions Compared

Key

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

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

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

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 onclick Project Settings > Click on target Intended Workflow.
  3. Click on Select the target transition and add "the Create Issue"  Post Function post function
  4. Click on Select Conditions and Configurations.
  5. Add below JQL query and JQL query returns issue 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 only when 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 sectionFields tab.

          Image RemovedImage Added

      8. Update the Post - Function and ; Sample Post functions Function looks like below

          Image RemovedImage Added

      9. Repeat the steps 3 to 8 for each value of custom field and value. Sample post functions looks 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 new the newly selected value of custom field during repetitive transitions.

Info

The suggestion It is recommend to test this scenario in a test environment before implementing the same it in the production.