Automation Condition - compare lastCommentAuthor = Customer (or participants)

Mark Murawski 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

1 vote
Answer accepted
Mark Murawski 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 Leaders.
November 27, 2019
"Request participants" in ("{{issue.comments.last.author.name}}"

Shouldn't it be the other way around? 

0 votes
Mark Murawski 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)

Suggest an answer

Log in or Sign up to answer