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' the Creation on Transition post function and the same transition occurs after the reopening of the issue, the post function will execute again and will create is run again resulting in duplicate issues. This article explains on how explains how to restrict the creation of duplicate issues when the issue is reopened.

Instructions

  1. Log into Jira as a Jira Administrator and click Image Modified > Issues  > Projects.
  2. Navigate to the intended project and Click on click Project Settings > Click on target Workflowintended workflow.
  3. Click on target the transition where for which Create on Transition is configured. 
    Let's assume below is the a sample post function configured for Creation creation of multiple issues for Custom custom field value selection. Please see the page refer to How to create multiple issues for reference.Post FunctionImage Removed                 Click On more information.
    Post FunctionImage Added
  4. Click  to edit the Create Issue Post  post function
     

...

  1. Image Added 

...

  1. Select the Conditions & Configuration tab on the left navigation panel.

...

  1. Enter the below mentioned JQL in JQL query field

...

  1. Image Added
    The query checks whether the original issue was in closed status or not.

    Tip
    iconfalse

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

...

...


  1. Add the below mentioned condition

...

  1. for the issues

...

  1. to be created only when

...

  1. the condition is

...

         Image Removed

...

  1. met:
      Image Added
  2. Update the configuration and the updated post function looks like

...

  1. :
     

...

  1. Image Added

  2. Publish the workflow before executing the transition. You

...

  1. see that no duplicate issues

...

  1. are created when the same transition occurs

...

  1. after reopening the issue.
Info

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