YouTrack Server 2024.3 Help

Subtask Inherit Fix Versions

This workflow automatically updates the fix version of a subtask to the fix version set for a parent task.

Name

@jetbrains/youtrack-workflow-subtask-inherit-fix-versions

Auto-attached

yes

Rules

  • Copy fix versions from parent task when issue is linked as a subtask (on-change)

  • Set fix versions for subtasks when fix versions are added to parent task (on-change)

  • copy-values.js (custom script)

Use Case

This workflow helps you manage the fix version set for tasks and subtasks.

This workflow updates the values that are stored in the Fix versions custom field. To use this workflow, you need to make sure this field is used in the projects that you want to update. The option to store multiple values in the Fix versions field must be enabled in all the projects that use this workflow.

Rules

This workflow includes three modules. The first two modules contain on-change rules that synchronize the value set for the Fix versions field between parent tasks and subtasks. The third module contains a custom script that is shared by these rules.

Title

Description

Copy fix versions from parent task when issue is linked as a subtask

This rule checks a subtask when it is linked to a parent task.

  • If the subtask belongs to a different project from the parent task and the projects use different sets of values for the Fix versions field, the fix versions are set for the parent task only.

  • If the subtask and parent task belong to the same project, the fix versions assigned to the parent task are set as the fix versions for any unresolved subtasks.

Set fix versions for subtasks when fix versions are added to parent task

This rule checks for subtasks when the fix versions are set for an issue.

  • If the subtasks are in an archived project or belong to a different project from the parent issue and the projects use different sets of values for the Fix versions field, the fix versions are set for the parent task only.

  • If the subtasks are in an active project and belong to the same project as the parent task, the fix versions for each unresolved subtask are set to the fix versions that are set for the parent task.

copy-values.js

This module contains a custom script that is used in both of the rules for this workflow.

Last modified: 16 November 2023