I am currently working on automating various processes in Jira and have encountered a challenge that I believe many of you might have faced as well. On almost every automation, I would like to log more meaningful messages, such as status codes and messages, whether they indicate an error or success. This would greatly help in debugging and understanding each step of the automation.
This will help in identifying where things might be going wrong or confirming that everything is working as expected as well as serving as a documentation of the rule.
Alas, With more detailed logs, I aim to make the debugging process more efficient. Understanding the exact point of failure or success in the automation will save a lot of time and effort.
So, here are my question:
Any insights, examples, or resources you could share would be immensely helpful. Thank you in advance for your assistance!
Best regards,
Filipe De Lima
Long ago...I wrote this suggestion to improve logging, requesting optional verbose information logging: https://jira.atlassian.com/browse/AUTO-36
It is finally in progress, although it is unclear what Atlassian is implementing as they have re-worded my original suggestion multiple times and changed my intent. (sigh)
Until we see what they are building, you may try:
Kind regards,
Bill
Thank you Bill! Let's hope they add some good functionally there :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Log action + audit log is my go-to method to track and trace what went wrong in Jira Automation:
https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Log-action
Log action can capture the status code or return bodies from APIs or smart values.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Victor!
Is that the only option, though? I actually know it but I don't get much value from it.
One example: within a certain work item you can create a new work item using a manual trigger on it. Once it failed for me and all I got was this error message:
```Unable to create work item: An error occurred (customfield_11883)```
Is there a way to expand this error using the Log action? To know what exactly went wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.