Versions Compared

Key

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


Whenever multiple issue creation is configured for 'creation on a transition' post function and same transition occurs again after the reopening of the issue, the post function will execute again and will create duplicate issues. This article explains on how to restrict the creation of duplicate issues when the issue is reopened.

Instructions

  1. Log into Jira system as 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 where Create on Transition is configured. 
  4. Let's assume below is the sample post function configured for Creation of multiple issues for Custom field value selection. Please Click Here to know more on see the page How to create multiple issues with help of 'Create Issue on Transition'.Post FunctionImage Removed for reference.Post FunctionImage Added                 
  5. Click On  to edit Create Issue Post function

           Image RemovedImage Added

     6. Click On Conditions and Configurations section available on the left navigation panel.

     7. Write a below JQL query in JQL section and below query field. The query checks whether the original issue was in closed status or not.

Tip
iconfalse

issue = %original_key% AND Status was in (Closed)


          Image RemovedImage Added

     8. Add below condition and issues will be created only when below condition is true.

         Image RemovedImage Added

    9. Update the configuration and updated post function looks like below.

         Image RemovedImage Added

10.  Publish the workflow before executing the transition. You will be able to see that no duplicate issues will be created when the same transition occurs post reopen of the issue.


Info

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