Force user to add comment on state change.
This rule doesn't seem to work for me...
rule Comment required
when State.becomes({Reopened}) {
if ((comments.added.isEmpty)) {
comments.required("You must add a comment to reopen.");
}
}
How can I force a user to add a comment in this situation?
Please sign in to leave a comment.
Hello!
We know about this problem, here is link http://youtrack.jetbrains.net/issue/JT-10337
You can vote for this issue.
At the moment, I can advise you to use following WF, as a temporary solution:
rule Comments requared
when State.becomes({Reopened}) {
assert comments.added.isNotEmpty: "You must add a comment to reopen.";
}
Regards,
Mikhail