How to validate that comment was entered
I would like to validate, that comment was entered when transitioning from In progress to Resolved
Comments (4)
-
repo owner -
reporter Thanks for the quick answer. Is it possible to limit this just to users in some group, for example if user is a member of a group 'developer' he is not required to enter comment, everyone else must?
Thanks again.
-
repo owner You can do it using the following boolean expression:
!isInGroup(%{00020}, "group_name") IMPLIES %{00127} != null
but I recommend you to use project roles instead of groups, since using project roles in the workflow makes them much more reusable than using groups.
Then you would use groups to associate users to project roles in each project.
If you use project roles, you should use the following boolean expression:
!isInRole(%{00020}, "role_name") IMPLIES %{00127} != null
Note that %{00020} is field code for Current user.
-
repo owner - changed status to resolved
Andrej, I close the issue. Please, reopen it if you need to.
- Log in to comment
Hi Andrej,
Insert "Boolean validator with math, date-time or text-string terms" into transition "Resolved Issue" (from In progress to Resolved statuses) with the following configuration:
Boolean expression is:
Note that %{00127} is field code for "Transition's comment".