YouTrack Server 2022.2 Help

Subtasks

This workflow automatically sets the state of a parent task when the state changes in issues that are linked as subtasks.

Name

@jetbrains/youtrack-workflow-subtasks

Auto-attached

yes

Rules

  • Open parent task when subtask changes to an unresolved state (on-change)

  • Fix parent task when all subtasks are resolved (on-change)

Use Case

You want to automatically update the state of a parent task when changes are applied to subtasks.

  • When any subtask is set to an unresolved state, the state of the parent task changes to Open.

  • When all subtasks are set to a resolved state, the state of the parent task changes to Fixed.

Rules

This workflow includes two rules.

Title

Description

Open parent task when subtask changes to an unresolved state

When the state of an issue is set to an unresolved state, this rule checks whether the issue is linked as a subtask of a parent task. If the parent task belongs to an active project and has a resolved state, the state of the parent task is changed to Open.

Fix parent task when all subtasks are resolved

When the state of an issue is set to a resolved state, this rule checks whether the issue is linked as a subtask of a parent task. If the parent task is unresolved, the rule checks the current state for all other issues that are linked to the parent task as subtasks. If all other subtasks are resolved, the state of the parent task is set to Fixed.

The rule then checks the parent task to see if it is linked as a subtask to a parent task and performs the same operation.

Last modified: 21 September 2022