Untag on Reopen
This workflow automatically removes a specific tag from an issue when the state is set from a resolved state to an unresolved state.
File Name | jetbrains-youtrack-untagOnReopen |
---|---|
Auto-attached | no |
Rules | Untag issue on change State from resolved to unresolved (stateless) |
Use Case
This workflow helps you manage tags that indicate an issue has been fixed. You can customise this workflow to automatically remove or update inappropriate tags based on a change in the issue state.
Rules
When the state of an issue is set to an unresolved state, this rule removes the confirmed tag from the issue.
Untag issue on change State from resolved to unresolved
rule Untag issue on change State from resolved to unresolved
when State != null && !State.isResolved && State.oldValue != null && State.oldValue.isResolved {
var tag = {tag:confirmed};
tags.remove(tag);
if (tags.removed.contains(tag)) {
message(l10n ( Tag ' {tag.name} ' is removed.));
}
}
Last modified: 2 February 2017