Example: Transition parent issue only when certain issue sub-task types are done
User Stories have a user story workflow. The Engineering Sub-Task type has an engineering sub-task workflow. The QA Sub-Task type has a qa sub-task workflow.
I have the following compound criteria to meet:
- When at least one Engineering Sub-Task or QA Sub-Task type is set to "In Progress", auto transition the parent User Story to Step 2.
- Only when all Engineering Sub-Task types are "Done", auto transition the parent User Story to Step 3. This happens regardless of the status of the QA Sub-Tasks.
- Only if all Engineering Sub-Task types and QA Sub-Task types are "Done", allow transition of the User Story from Step 3 to Step 4.
I've seen a few workflow plugins that allow transition of the parent if *all* sub-task types are set to a particular status or resolution. That would violate #2, however. Are there any plugins that allow you to segregate sub-task types for different transition thresholds? I've been searching and thus far I haven't found any.
From a logic perspective it could work like this:
- Post Function on the Engineering Sub-Task workflow for the "Done" transition:
- If all sibling Engineering Sub-Task types are "Done", auto-transition the parent issue from Step 2 to Step 3 (#2 in the compound criteria I listed above)
- If all sibling Engineering Sub-Task types are "Done" and QA Sub-Task types are "Done", allow transition from Step 3 to Step 4.
Note: There is no allowed transition of the story from Step 2 to Step 4. That is handled at the User Story level.
Post-function Transition issues in transition "Start Progress" in "Engineering Sub-Task" and "QA Sub-Task" workflows
This post-function will auto-transition parent issue to "Step 2" when any of the sub-tasks are moved to status "In Progress". Use the configuration shown in the screenshot. Notice that "Status of Step 2" must be replaced with the name of the status associated with Step 2:
Post-function Transition issues in transition to status "Done" in "Engineering Sub-Task" workflow
This post-function will auto-transition parent issue to "Step 3" when the last Engineering Sub-task is moved to status "Done". This post-function work as a team with validator Validation on sub-tasks in transition "From Step 2 to Step 3" in Story workflow. Use the configuration shown in the screenshot. Notice that "Status of Step 3" must be replaced with the name of the status associated with Step 3:
Validator Validation on sub-tasks in transition "From Step 2 to Step 3" in Story workflow
This validator will prevent execution of transition from Step 2 to Step 3 unless every Engineering Sub-task is in status "Done":
Validator Validation on sub-tasks in transition "From Step 3 to Step 4" in Story workflow
This validator will prevent execution of transition from Step 3 to Step 4 unless every Engineering Sub-task and QA Sub-task is in status "Done":
Other examples of that functions
- Close parent issue when all sub-tasks are closed
- Enforce certain type of sub-tasks to be "Resolved" to allow executing a transition
- Make linked issues, sub-tasks and JQL selected issues progress through its workflows
- Make parent issue progress through its workflow
- Proceed with a task only when all sub-tasks are completed
- Transition parent issue only when certain issue sub-task types are done
- Automatically close resolved sub-tasks when parent issue is closed
- Automatically close resolved sub-tasks when parent issue is closed (Transition issues)
- Change parent's status depending on sub-task's summary
- Change parent's status depending on sub-task's summary (Transition issues)
- Moving story to "In Progress" when one of its sub-tasks is moved to "In Progress"
- Moving story to "In Progress" when one of its sub-tasks is moved to "In Progress" (Transition issues)
- Moving story to "Ready for QA" once all its sub-tasks are in "Ready for QA" status
- Moving story to "Ready for QA" once all its sub-tasks are in "Ready for QA" status (Transition issues)
- Moving sub-tasks to "Open" status when parent issue moves to "In Progress"
- Moving sub-tasks to "Open" status when parent issue moves to "In Progress" (Transition issues)
- Transition only a sub-task among several ones
- Transition only a sub-task among several ones (Transition issues)
- Transition sub-tasks when parent is transitioned
- Transition sub-tasks when parent is transitioned (Transition issues)
- Triage Jira Service Desk email requests (Move issues)