Hi,
For a certain type of issue, we force specific users to enter the time spent, with this validator:
{Total time spent (minutes)} != null or %{Assignee} not in ["user1", "user2"]
So if user1 is the current user and the total time spent field is empty, it should display a warning. But it doesn't work, even if the condition should return true.
Hi Pascal,
Sorry for a so late answer, but haven't seen your question until now, since it hasn't got the label of JIRA Workflow Toolbox add-on.
The problem with your expression is that virtual field Total time spent (minutes) always returns a numeric value, i.e., it's never null. The correct boolean expression is:
{00025} > 0 or %{00003} not in ["user1", "user2"]
Note that:
I inform you that there also is a virtual field for Current user which is the user that is logged and executing the transition of the workflow, which is not necessarily the Assignee. Its field code is %{00020}.
Regards,
Fidel
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.