Do Not Vote for Resolved Issue
This workflow locks an issue so that users cannot vote for the issue after it is resolved.
File Name | jetbrains-youtrack-doNotVoteForResolvedIssue |
---|---|
Auto-attached | no |
Rules | jetbrains-youtrack-doNotVoteForResolvedIssue (stateless) |
Use Case
This workflow helps you keep users from voting for issues that are already resolved.
Rules
When a user votes for an issue, this rule verifies that the issue is already in a state that is Resolved.
If the issue is not resolved, the vote is added to the issue.
If the issue is resolved, a warning is displayed. The vote is not added to the issue.
jetbrains-youtrack-doNotVoteForResolvedIssue
rule jetbrains-youtrack-doNotVoteForResolvedIssue
when isResolved() {
assert !votes.changed: l10n ( Voting for a resolved issue is not allowed. );
}
Last modified: 7 March 2019