...
...
...
...
...
...
...
Scenario
Div |
---|
|
Image Added Estimated Time: 10 min |
When all the sub-tasks are completed, you would like to automatically move the parent issue to be in done status only if it's not
...
done.
Steps
The following steps demonstrate how to configure Create on Transition's Update issues post function, using the transition feature along with JQL query and regex inspection:
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 |
---|
|
Image RemovedImage Added | Step 1As a Jira Administrator or Workflow Administrator: Navigate to your workflow. Edit your workflow to create a draft version. Select Done (31) transition Select the Post Functions tab. Click Add post function Select Update issues (Bob Swift) post function and add
| Image Removed
Image Added |
| Image Added | Step 2Within the Issue Fields screen: Select
| the tab tab. Select only "Parent issue key" in the Issues to update field Enter Done in
| the fieldImage RemovedImage Added |
| Image Added | Step 3Define the JQL query that needs to be used in conjunction with regex to inspect the number of issues that are not in the Done status. Select the Conditions & Configuration tab. Enter "%parent_status%" in the Condition 1 field. Enter "Done" in the Regular expression pattern field. Select Negative matching condition, so we only update the parent issue when the parent issue's story is not "Done". Scroll down until you
| find find JQL query field. Enter "parent = %parent_key% and status != Done" in the JQL query field Enter "%jql_result_count%" in
| the Condition 1 fieldthe Condition 2 field. Enter "0" in the Regular expression pattern field. Select Exact matching condition, so we only transition the parent issue to be done when all the subtasks are done. Click
| the button button to save your configuration.
| Image RemovedImage Added |
| Image Added | Step 4Ensure to publish your workflow. It is always recommended to save a backup of the previous workflow when prompted.
| Create an issue of type "Story".Validate that the new Navigate to an issue with sub-task issues that is not done. Complete all the sub-task issues
| were created and that it contains the name prepended before the parent summaryas done Validate if the parent issue is also moved to done status.
|
|
|