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: 

How can I use {{issue.comments.last.author.displayName}} in an automation?

Jesús Rafael Martínez Jiménez
Contributor
August 10, 2023

Hi, community, I'm trying to use this smart value {{issue.comments.last.author.displayName}} in an automation from Jira Service Management to compare if the last comment was posted by a specific user, if is the case, I don't anything, other way I put a new comment, anyone could help me?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Alisa Zamaraeva
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.
August 11, 2023

Hi @Jesús Rafael Martínez Jiménez ,

I guess what you need is the rule with the Issue commented trigger, then with advanced compare condition you compare 2 values (smart value and specific user name) and if result is  true, comment will be added. Here you can see an example:

Screenshot from 2023-08-11 15-51-41.png

 

Hope this helps, let me know if you need more details

Jesús Rafael Martínez Jiménez
Contributor
August 11, 2023

Thank you, Alisa. Let me try if this solution works. :D

0 votes
Yair
Contributor
February 9, 2025

I am looking to expand this rule to check if the comment.last.author.displayName is able to look for multiple users. Meaning if 1 of 2 users is the last comment the rule should fail.

Thanks

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events