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: 

Print Automation result as a comment in a triggered issue

Venkatesh G
June 5, 2024

I need support for the below condition. 

 

I am trying to create an automation to clone a ticket with manual trigger. 

 

So once the automation is completed, if the automation is completed sucessfully, then it needs to comment on the triggered issue that "Automation is complete"

 

If the automation is failed, then it needs to comment on the triggered issue that "Automation failed due to <<Error Message>>>"

Is it possible ?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jack Brickey
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 5, 2024

Hi @Venkatesh G , welcome to the community.

The question I have for you is under what conditions the clone would fail? If you were simply using the clone action and cloning in the same project, then it will not fail unless there's some bug in the software. Maybe there is something unique about your clone that could succeed or fail depending on some condition?

 

Venkatesh G
June 5, 2024

Hi @Jack Brickey 

It's possible that mandatory fields were added to issues after the trigger issue was created. In such cases, the trigger issue won't have those fields, but new issues should include those mandatory fields. In the automation log we are getting that these mandatory fields are missing. I just want to display that if automation fails

Jack Brickey
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 6, 2024

Got it, thanks. In this case I would do one of two things:

  1. use JQL to search for issues where unresolved issue have the mandatory fields empty and proactively correct each
  2. use an if/else condition in your rule - if mandatory fields are empty then send email, else clone issue
Like Bill Sheboy likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events