...
...
...
...
...
...
...
...
Scenario
Div |
---|
|
Estimated Time: 12 min |
You have a new Create Issue post function in place and each time the workflow transition takes place, you would like to inspect the Summary to see if it is an exact match of a specific string and if so, you would like to create the new issue and link the newly created issue back to the parent issue that was being transitioned.
Background
This scenario uses an example ePub workflow that helps teams coordinate the publication of electronic books. We have a Create Issue Post Function that processes when users transition issues from the "Open" to "In Draft" steps. For each instance of this transition, we automatically create a new issue linking it back to the parent issue. What we want now, is to check the Summary (using regex) to see if it begins with either "epub" or "digital" and if either condition is met, we can create and link the issues.
Steps
The following steps demonstrate how to configure Create on Transition, regex inspection of the summary 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.
- Navigate to the Post Functions tab.
- Add a Create Issue post function.
| |
| | Step 2ISSUE FIELDS: - 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 3OPTIONAL RULES: Define the regex used to inspect the summary of the parent issue and the exact matching condition used to evaluate. - Navigate to the Conditions & Configuration tab.
- Enter "%original_summary%" in the Condition 1 field.
- Enter "^epub | ^digital" in the Regular expression pattern field to search for any summary that is "epub" or "digital"
- Select Exact matching condition, so we only create the issue when either of the text strings return an exact match
- 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 with a Summary that begins with either "epub" or "digital" and
transition the issue to trigger your post function. - Validate that the new issue was created and that it contains a link back to
the originating issue.
|
|
|
...