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

Jesús Rafael Martínez Jiménez 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

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 Leaders.
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 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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events