The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Condition - compare lastCommentAuthor = Customer (or participants)

Mark Murawski
Contributor
November 27, 2019

Hi,

 

Using Automation for Jira

 

- Trying to set up a rule with a condition of the comment-er is one of the users involved in the issue (anyone except an Agent)

 

 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Mark Murawski
Contributor
November 27, 2019

Figured it out:

 

(reporter = "{{issue.comments.last.author.name}}") OR ("Request participants" in ("{{issue.comments.last.author.name}}"))

 

Similar to the other question on: Compare if lastCommentAuthor == Reporter

Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 27, 2019
"Request participants" in ("{{issue.comments.last.author.name}}"

Shouldn't it be the other way around? 

0 votes
Mark Murawski
Contributor
November 27, 2019

You can't run it the other way around.  

 

This

"{{issue.comments.last.author.name}}"

Gets replaced with

"foobar@baz.com"

 

So then you have invalid JQL if you do

"foobar@baz.com" in ​"Request participants"

 

Error in the JQL Query: Expecting either 'OR' or 'AND' but got 'Request participants'. (line 1, character 22)