YouTrack Standalone 2017.2 Help

Comments

This workflow locks an issue so that comments cannot be added after the issue is resolved.

File Name

jetbrains-youtrack-comments

Auto-attached

no

Rules

No Comments for Verified Issues (stateless)

Use Case

This workflow was originally taken from a submitted request JT-7326.

The user who submitted this issue wanted a way to lock an issue so that comments cannot be added after the issue has been resolved.

Rules

When an issue is updated, this rule verifies that the issue is already in a state that is Verified and is not set to this state as a result of the update. This prevents the user from setting the state to Verified and adding a comment in the Apply Command window. If this condition is true, the rule verifies that the update does not include a comment.

  • If the update does not include a comment, the issue is updated.

  • If the update includes a comment, a warning is displayed. The comment is not added to the issue.

No Comments for Verified Issues

rule No Comments for Verified Issues when State == {Verified} && !State.becomes({Verified}) { assert comments.added.isEmpty: l10n ( Commenting for fixed and verified issues is disabled. ); }
Last modified: 7 March 2019