I have a strange "bug" with my JSM automation. It fails to pass the JQL condition which is looking for the last person to comment in the request participants field, unless there is already a value (anyone) in the Request Participants field. It basically fails the condition if RP is empty. Its checking like so:
"Request participants" not in ({{issue.comments.last.author.accountId}})
and looks like this in the automation:
The audit log suggests that the issue didnt match the JQL (the actor is Automation for Jira and it runs everything else, and there is no issue level security).
We recommend using the 'Issue fields condition' for more consistent results.
As I mentioned above, if there is already a user in the Request Participants field, then this works and passes the JQL. Am I missing something here?
(My workaround in the automation is to temporarily add a service account as RP, pass the JQL condition and then remove it after, which is hella clunky).
Have you tried adding a check if the Request Participants field is empty also in the condition:
"Request participants" NOT IN ( {{issue.comments.last.author.accountId}} )
OR "Request participants" IS EMPTY
Kind regards,
Bill
Thanks for the reply Bill. That worked. I feel a bit of a fool for not trying this myself earlier. It should just work with the NOT IN operator but forcing it to pass by checking to see if its empty of course works too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.