Create multiple issues for each fix version

Create multiple issues for each fix version

Scenario

When an issue transitions between a certain step, you would like to create multiple issues, one for each fix version specified within the original issue.

Background

This scenario uses an example ePub workflow that helps teams coordinate the publication of electronic books. We want to add a Create Issue post function that processes when users transition issues from the "To Do" to "In Progress" steps. Using the "Create multiple issues" feature of Create on Transition, we can provide a Substitution Variable of "%original_fixed_versions%". This allows us to create one issue for each of the fix versions associated with the issue being transitioned. Each issue created contains a link back to the original issue. In order to better identify which fixed version the issues belong to, we prepend the issue summary with the fix version.

Steps

The following steps demonstrate how to configure Create on Transition using the Create multiple issues feature:

Step 1

As a Jira Administrator or Workflow Administrator:

  1. Click the Cog icon to open the Settings menu and select Issues

  2. Click Workflows

  3. Navigate to your workflow and edit your workflow to create a draft version

  4. Select the transition

  5. Select the Post Functions tab.

  6. Click Add post function

  7. Select Create Issue (Bob Swift) post function and add

Step 2

  1. Select the Basics Fields tab.

  2. Prepend "@entry@ - " to "%parent_summary%" in the Summary field.

  3. Select the Links tab.

  4. Select the following from the respective list of available options:

    •  

      • Create Link - "Original issue key"

      • Create link type - "Relates"

      • Create link direction - "New issue to issue key"

Step 3

Define the regex used to inspect the label of the issue and the exact matching condition that is used to evaluate.

  1. Select the Conditions & Configuration tab.

  2. Enter "%IssueType%" in the Condition 1 field.

  3. Enter "Task" in the Regular expression pattern field.

  4. Select Exact matching condition, so we only create the sub-task
    when the issue type is "Story".

  5. Enter "%original_fixed_versions%" in the Create multiple issues field

  6. Click the Add button to save your changes.

Step 4

  1. Ensure to publish your workflow. It is always recommended to save a backup of the previous workflow when prompted.

  2. Create an issue and assign a set of fixed versions.

  3. Transition the issue to trigger your post function.

  4. Validate that the new issues (one per fixed version) were created in the proper project and that each one contains a link back to the originating issue.

 

More ideas around this tutorial:

  • For each new hire, automatically create an issue for each application or resource the user needs.

    • In step 3 above, just use the application/ resource custom field substitution variable

  • For each new product, automatically create all the marketing tasks

    • In step 3 above, just enter the list of marketing tasks as comma-separated-values

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.