Hi All,
I want user not to succeed creating a worklog if no Work log description is provided. I want to prompt user "Please add Work Log Description when he tries same.
I have Jira automation enabled, I am able to check trigger when work log event is created, compare if worklog.comment is empty or not, if empty I don't see any option for prompt or stop the event or prompt user to enter description.
Is there a way to validate this? I am stuck here.
Note: This has nothing to do with validators in Workflow transition
Thanks
Sadeesh N
Jobin's suggestion is good, but you could also try this:
project = "X" AND issuetype = "Y" AND (voter != currentUser() OR voter is EMPTY)
The example you gave will only find issues where someone has voted, but the current user hasn't, but will leave out any issues with no voters at all. The reason this works and the original doesn't is a peculiarity of how JQL treats empty fields and equality. When there are no voters, both "voter = currentUser()" and "voter != currentUser()" evaluate to false, but "voter is EMPTY" or "voter is NULL" will evaluate to true.
This may seem non-intuitive, but it's consistent with the way SQL treats null values, and since JQL is modelled after SQL, the architects decided that it would be important to keep the SQL semantics in JQL.
Try this:
key not in votedIssues() and project = X and issuetype = Y
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.