How to create multiple issues

Description

Prior to version 3.3, in order to create multiple issues or subtasks, you needed to configure a Create issue or Create subtask post function for each issue to be created. Version 3.3 adds an option to make it easier to create multiple similar issues (or subtasks) with one post function. Multiple post functions can still be used and may be needed for creating issues with unique settings or to use different conditioning. Also see: How to create multiple issues - advanced example.

Steps

  1. Choose to add the Create issue or Create subtask post function as usual.
  2. Configure various options as usual.
  3. Find the Create multiple issues parameter.
  4. Add a comma separated list of entries. Processing will:
    1. Look at each entry
    2. If no pattern is provided, the entry will be selected for continued processing
    3. If a pattern is provided, then processing will continue only if the entry matches the selection criteria provided by the regex pattern and qualifiers provided
    4. Each selected entry will then drive the potential creation of the issue or subtask based on conditioning and the other parameters provided

 

Example - Simple

The following configuration will create 2 new issues when the transition is activated. One will be assigned to tom and one will be assigned to sally.

  1. Set multiple issue value field to: tom, sally
  2. Set the assignee field to: Specific user with the specific user field set to: %entry%
  3. Save and publish

You can do a similar thing for any other field. To demonstrate, lets assume you set the summary field to: Issue for %entry%. Because there are 2 entries in the comma separated list (and no additional filtering defined), 2 issues are going to be created each with a different summary.

Position%entry%IssueSummary
1tomFirst issue createdIssue for tom
2sallySecond issue createdIssue for sally

 

Advanced Examples

There are many ways to get a comma separated list of values. The simple example above just uses a hardcoded list, but the more interesting use cases are using Substitution variables to create the list. For example:

  1. Using results of a JQL query to create an issue for each issue found - see How to create multiple issues - advanced example
  2. A checkbox custom field - creating an issue for each selected item
  3. A select list custom field - creating an issue for each selected item
  4. Fix or affects version field - creating an issue for each version
  5. Components field - creating an issue for each component