Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Last comment author

Hi there,

I have a question regarding automation.
Is it possible to extract last comment author in JIRA Automation. I am using JIRA server.

I tried with  - commentLastCreatedBy & {{issue.comments.last.author.displayName}}  

But no luck

Thank you

2 answers

1 accepted

0 votes
Answer accepted
Mihai Schwarz
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.
Sep 28, 2023

Hi @Harsh ,

I've managed to trigger an automation rule that comments using the last comment author name using {{issue.comments.last.author.displayName}}

Additionally maybe you might find the article bellow useful.

https://confluence.atlassian.com/automation074/smart-values-1141481319.html

Thanks,

Mihai Schwarz

Hi @Mihai Schwarz 

I used the same thing , but I want to compare if the last comment author is assignee, which is not working as expected

Thank you 

Mihai Schwarz
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.
Sep 28, 2023 • edited

@Harsh make sure that you are getting the usernames as the format for the first argument is simply a text and the assignee is a username (most probably email format).

If you can share more information I can try an replicate your case to see if I can help you with a solution.

Hi @Mihai Schwarz 

 

Thanks for the information. 

I actually modified the one which you sent to compare(advanced compare)it to the custom field user field which act as second reporter 

i.e {{issue.comments.last.author}} = {{issue.customfield_123.displayName}}  

And edited the issue as per the requirement via automation. 

Hence your information helped me. 

I'll accept the answer. :)

Thanks 

Like Mihai Schwarz likes this
0 votes
Bill Sheboy
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.
Sep 28, 2023

Hi @Harsh 

I do not believe displayName values are required to be unique for users in a Jira site.

Instead you may want to compare the accountId values; those will be unique.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer