...
...
...
...
...
...
...
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 Removed the tab tab. Select only "Parent issue key" in the Issues to update field Enter Done in
| the fieldImage RemovedImage Added | Image Removed
| 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 field the the Regular expression pattern
| fieldSelect Negative Select Negative matching condition, so we only
| create the sub-tasks 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 field 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 Removed
| Image Added | Step 4Ensure to publish your workflow. It is always recommended to save a backup of the previous workflow when prompted. Navigate to an issue with sub-task issues that is not done. Complete all the sub-task issues as done Validate if the parent issue is also moved to done status.
|
|
|