Skip to end of banner
Go to start of banner

How to create new issues only for newly selected custom field value during repetitive transitions

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

Use Case

For example whenever In Progress transition is executed issues needs be created for selected values of Custom field. When Custom field is updated with additional new value and In Progress transition executed again, an issue needs be created for only  newly added value of Custom field and no duplicate issues 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 on Project Settings > Click on target Workflow
  3. Click on target transition add "Create Issue"  Post Function. 
  4. Click on Conditions and Configurations.
  5. Add below JQL query and JQL query returns issue 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 conditions are true

          

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

          

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

          

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

           

      10. Publish the workflow before executing the transition. You will be able to see that issues will be created for only new selected value of custom field during repetitive transitions.


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



  • No labels