Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Create on Transition for Jira
Results will update as you type.
  • Cloud
  • Data Center
  • Migration
  • Release notes
  • Upcoming releases
  • Help and support
  • Appendix
    • Tips - Cloud
    • Tips - Data Center
    • How to use regular expressions
    • Create multiple issues -Simple example
    • Create multiple issues - advanced example
    • Retrieve debug logs for Clone Plus for Jira, Create on Transition, and Update on Transition apps in Jira
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Create multiple issues - advanced example
    Updated Jun 27

    Create multiple issues - advanced example

    Description

    This can be used to create subtasks or issues, the example here will be for subtasks. Advanced techniques are used to show:

    1. Creating issues based on information in the original issue that caused the transition - for example, creating a subtask for each version listed as a fix version.

    2. Subsetting the information to exclude some entries.

    3. Controlling duplication of issues when the same transition is done again. 

    Steps

    1. Follow the steps similar to create multiple issues

    2. Determine the field in the original issue that will control the number of issues to be created. For instance, this could be one of the many Substitution variables that produce a comma separated list like original_fixed_versions, role_developers, original_labels_comma_separated, or similar.

    3. Determine any include or exclude criteria for subsetting the entries to be considered.

    4. Determine if duplication prevention is needed and, if so, determine a condition that could be used to determine if the create should proceed. A JQL query is a convenient way to do this.

    5. Configure the post function - see the example.

    Example - Fix versions

    1. Set the multiple issues value field to use the original_fixed_versions substitution variable.

    2. Subset to only use versions that do not have the word sprint (case insensitive) in them.

    3. Set the fix version for the subtask to be created to be the selected entry.

    4. Set a JQL query to determine if the subtask has already been created from an earlier running of this transition or some other means. This is a way to prevent unwanted duplicates.

      1. Note that the JQL query is executed for each entry processed since it contains the %entry% substitution variable.

    5. Use the JQL query results to condition the creation of the subtask. Only create the subtask if there are no subtask for this issue that have a fix version that matches.

    Use "%entry%"

    If the Create multiple issues field is replaced with blank or the regex eliminates all candidates, then no issues will be created.

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 14, "requestCorrelationId": "c78b5b491922473ea95d11ba83062772"}