Clone wiki

JIRA Workflow Toolbox / amazing / Transition Subtasks when Parent is Transitioned

Automatically transition Subtasks to certain Status when Parent Issue is transitioned to another status

We are going to explain how we can automatically move all subtasks to a certain status in subtask's workflow, when parent issue is moved to another status in parent's issue workflow.

Used Features

  • Virtual fields "Issue status" or "Execute transition": writing into these fields the name of an status or the name of a transition respectively, makes an issue progress through its workflow, provided conditions and validators in the transition are satisfied.
  • Post-function "Write field on linked issues or subtasks": used to write into virtual fields "Issue status" or "Execute transition" on subtasks.

Example: Automatically Cancel subtasks when Parent issue is cancelled

In this example we suppose that both parent's and subtask's workflows have a status called "Cancelled". We want to automatically cancel all subtasks when parent issue is cancelled. We also suppose that there is a global transition called "Cancel Issue" in both workflows (parent's and subtask's) which has as target status "Cancelled".

To implemente this use case we insert "Write field on linked issues or subtasks" post-function in transition "Cancel Issue" in parent's workflow, using the following configuration:

Configuration of post-function "Write field on linked issues or subtasks"
Configuration of post-function "Write field on linked issues or subtasks"
Configuration of post-function "Write field on linked issues or subtasks"

Once configured, transition "Cancel Issue" in parent's workflow will look like this:


Configuration of transition "Cancel Issue"

Related use cases

Updated