Scenario
Div |
---|
|
Estimated Time: 8 min |
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 "In Edit" to "In Composition" 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 parent 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:
Table plus |
---|
border | 0 |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
columnAttributes | style="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;" |
---|
id | steps_table |
---|
enableSorting | false |
---|
enableHighlighting | false |
---|
|
| Step 1As a Jira Administrator or Workflow Administrator: - Navigate to your workflow (ePub in this case).
- Edit your ePub workflow to create a draft version.
- Navigate to the Post Functions tab.
- Add the Create Issue post function.
| |
| | Step 2ISSUE FIELDS: - Select the Basics Fields tab.
- Prepend "%entry% - " to "%parent_summary%" in the Summary field.
- Select the Links tab.
- Select the following from the respective list of available options:
- Create Link - "Original issue key"
- Create link type - "Create on Transition"
- Create link direction - "New issue to issue key"
| |
| | Step 3Configure the Create multiple issues field using a substitution variable. - Select the Conditions & Configuration tab.
- Scroll down until you find Create multiple issues.
- Enter the "%original_fixed_versions%" substitution variable.
- Click the Add button to save your configuration.
| |
| | Step 4- Remember to publish your workflow. It is always recommend to save a backup
of the previous workflow when prompted. - Create an issue and assign a set of fixed versions.
- Transition the issue to trigger your post function.
- 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.
|
|
|
...