Subsystem Assignee
This workflow automatically assigns an issue to a specific user based on the value set in the Subsystem field.
File Name | jetbrains-youtrack-subsystemAssignee |
---|---|
Auto-attached | yes |
Rules | Set subsystem owner as assignee for new issues (stateless) |
Use Case
This workflow lets you assign issues to specific developers who are responsible for working on a subsystem in a project. You can customize this rule to create other techniques for assigning issues automatically based on values in other fields.
Rules
When an issue is updated, this rule checks for the following conditions:
The Assignee field is empty.
The issue becomes reported in this transaction or the subsystem or project is changed in a reported issue.
If either of these conditions is true and the Subsystem field is not empty, the issue is assigned to the owner of the subsystem.
Set subsystem owner as assignee for new issues
rule Set subsystem owner as assignee for new issues
when Assignee == null && (((Subsystem.changed || project.changed) && isReported()) || becomesReported()) {
if (issue.Subsystem != null) {
issue.Assignee = issue.Subsystem.owner;
}
}