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

can add comments to newly created issue in automation

Guy Yehezkel June 13, 2024 edited

I'm trying to either copy the comments of the trigger issue in automation to the problem I created or add a comment after it was created in the same automation.
I tried to add a branch rule for the most recently created issue in the same if statement, or at the end of the automation (from reading about it it seems like a scope / parallel execution issue), but both didn't work.
would appreciate your advice on the matter.
you can see the automation here (in the example you see linked issues as I tried that as well). image.png image.png

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 13, 2024

Hi Guy - Welcome to the Atlassian Community!

Create your Branch under the Issue Create action - you have it too far out and related to the trigger. Make the Branch Most Recently Created Issue like you had it. Then put the Add comment under there. 

Guy Yehezkel June 13, 2024

Hi John, thank you for your reply!
I have already done that as you can see below, but unfortunately, the result is the same.

Guy image.png

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 13, 2024

And what is the result? Can you share the Audit Log? Does it run and just does provide a comment? Are you adding a new Comment from scratch? Or copying from the trigger issue? And if copying, which comment? 

Duc Thang TRAN
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.
June 13, 2024

Hello @Guy Yehezkel 

You need to ensure that your automation is set for the global project or multiple projects if your new ticket is on the other project. 

and try with this one 


{{#triggerIssue.comments}} Comment by: {{author.displayName}} at: {{created}} {{body}} {{/}}

Guy Yehezkel June 13, 2024

thanks, I changed the scope of the automation to global and added the smart values text as you provided above and it works like a charm, thank you!

Suggest an answer

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

Upcoming Jira Events