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

0 votes
Jack Brickey
Community Champion
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
Community Champion
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

Suggest an answer

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

Atlassian Community Events