Clear Fix Version
This workflow removes any values in the Fix versions field when an issue is assigned a state that does not require a fix version. For states like Won't Fix and Obsolete, the Fix version is irrelevant. For Duplicate issues, the Fix versions field should be set when the duplicated issue is resolved.
File Name | jetbrains-youtrack-clearFixVersion |
---|---|
Auto-attached | no |
Rules | Clear Fix versions on state becomes Can't reproduce, Duplicate, Won't Fix, Incomplete, Obsolete (stateless) |
Use Case
This workflow ensures that you don't track issues for product releases if they will not be fixed in any release. It also prevents you from setting a fix version for duplicate issues.
Rules
When an issue is assigned any of the states mentioned in the rule, all values are removed from the Fix versions field.
Clear Fix versions on state becomes Can't reproduce, Duplicate, Won't Fix, Incomplete, Obsolete
rule Clear Fix versions on state becomes Can't reproduce, Duplicate, Won't Fix, Incomplete, Obsolete
when State.becomes({Can't Reproduce}) || State.becomes({Duplicate}) || State.becomes({Won't fix}) || State.becomes({Incomplete}) || State.becomes({Obsolete}) {
if (Fix versions.isNotEmpty) {
Fix versions.clear;
message(l10n ( 'Fix versions' have been cleared. ));
}
}