...
...
...
...
...
...
...
...
...
...
...
...
Scenario
Div |
---|
|
Estimated Time: 9 min |
Each time a new issue is created that is of a certain issue type, you want to create a sub-task using the same summary as the parent issue.
Background
This scenario uses an example ePub workflow that helps teams coordinate the publication of electronic books. We can configure a Create Sub-task post function that processes when users transition issues from the "Open" to "In Draft" steps. For each instance of this transition, we inspect the issue type and if it is a "Task", we automatically create a new sub-task issue linking it back to the parent issue. We inspect the issue type using one of Create on Transition's powerful Substitution Variables.
Steps
The following steps demonstrate how to configure Create on Transition, using regex inspection of the issue type and applying the proper linkage between issues:
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.
- Select the Post Functions tab.
- Add a Create Sub-task post function.
| |
| | Step 2Within the Issue Fields screen: - 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 - "Issue key to new issue"
. |
|
| | Step 3Define the regex used to inspect the summary of the parent issue and the exact matching condition that is used to evaluate. - Select the Conditions & Configuration tab.
- Enter "%IssueType%" in the Condition 1 field.
- Enter "Task" in the Regular expression pattern field.
- Select Exact matching condition, so we only create the sub-task
when the issue type is "Task". - Click the Add button to save your changes.
| |
| | Step 4- Remember to publish your workflow. We always recommend saving a backup
of the previous workflow when prompted. - Create an issue of type "Task".
- Validate that the new sub-task issue was created and that it contains a link back to
the originating issue.
|
|
|
...