Forums

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

Log transition error in variable so it can be used in comment

Walter Lamm
Contributor
September 25, 2024

Hi community,

I have an automation that transitions the issue in a specific status when a box is checked in a submitted form. 

The problem is this status transition has some validators that can hinder the issue from transitioning. So when the user checks the box the automations tries the transition but when some validation fails the issue will stay in place without the user knowing what happened.

Right now I have a check at the end for the end status which should be the target status. If it's not a generic comment is created that informs the user about some possible causes why it failed to transition.

So my question would be:

Is there a way to somehow log the error message in a variable so I can insert that into that comment?

I can see the error message in the audit log but how can I use it?

 

Thanks!

 

error.png

1 answer

0 votes
Benjamin
Community Champion
September 25, 2024

 

Not sure it there's a path to log that info in comment. There's an article to setup smart values for debugging automation rules. Possibly you can use it to place in a comment or follow the article for another approach for troubleshooting.

 

https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/

 

Hope this helps

Suggest an answer

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

Atlassian Community Events