Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation -Edit the second last comment from multiple issues

Vignesh Jayagopal
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 6, 2024

Hello,

We want to edit the second latest comment in multiple issues via automation rules.

In the edit comment action, we have only first comment, last comment & trigger comment option.

So i think we have to use some smart value to identifiy the second latest comment.

I tried this value, but the rule is failing stating " Error editing comment - smart-value did not resolve into a number."

 

{{issue.comments.getFromEnd(1).body}}

Can someone help on how to retrieve the second last comment for editing.

1 answer

0 votes
Kai Becker
Community Champion
August 6, 2024

Hi @Vignesh Jayagopal 

thank you for your question. You should be able to access the second latest comment via the following smart value:

{{issue.comments.reverse.get(1).body}}

Suggest an answer

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

Atlassian Community Events