The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

can add comments to newly created issue in automation

Guy Yehezkel
June 13, 2024

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.pngimage.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
John Funk
Community Champion
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 Champion
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 Champions.
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!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events