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?

2 comments
Comment actions Permalink

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

0
Comment actions Permalink
Is there any way to add a comment to state changing from the UI?  Your solution is working only by using command dialog.
0

Please sign in to leave a comment.