Versions Compared

Key

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

This article explains on 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 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  only the newly added value of Custom field and no . No duplicate issues issue should not be created for previously selected values of custom field.


Step-by-step guide:

  1. Log into Jira as a Jira Administrator and click  > Issues  > Projects
  2. Navigate to the intended project and Click click on Project Settings > Click on target intended Workflow
  3. Click on target transition and add "Create IssuePost Functionpost function
  4. Click on Conditions and Configurations.
  5. Add below JQL query and JQL query returns issue that should 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 only when all conditions are true

          

      7. Set Custom Field value to A in Custom fields Fields section.

          

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

          

      9. Repeat the steps 3 to 8 for each value of custom field and Sample post functions looks ; Sample Post Functions should look like below.

           

      10. Publish the workflow before executing the transition. You will be able to see that issues will be created for only new 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.