Last comment author

Harsh
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.
September 28, 2023

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

Harsh
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.
September 28, 2023

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.
September 28, 2023

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

Harsh
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.
September 28, 2023

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