Forums

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

JSM Automation triggers a lot of Errors, but working as intended.

Tobias H
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 Leaders.
December 7, 2022

I recently split our "If comment -> Update status" into two different automations, previously we had one automation that worked regardless if it was a customer or agent who commented. This had the unwanted effect that Automation for Jira pinged our agents non-stop as soon as they did any changes.

To avoid that, and making sure that the notifcations they received were actually relevant, we split them.

The customer based one works perfect, without any errors, as it still relies on Automation for Jira, but the agent one causes Errors whenever a customer adds a comment (when in reality it works exactly as expected.)

Screenshot 2022-12-07 at 13.51.27.png

Above is the workflow in question, which is relying on the "User who triggered the event" for the Action. Our customers can't do that action, so it fails and results in an Error and another email regarding the error to my inbox.

But what I am not understanding is: Due to the criterias in the IF, the automation shouldn't even trigger when a customer replies.

What am I missing, or doing wrong? :thinking:

Thanks in advance for any replies :D

1 answer

0 votes
Ismael Jimoh
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 Leaders.
December 7, 2022

What is the error you get. Just looking at the above, I would say you should not get an error but it really does depend on what the exact error here is.

Could you attach an image of the error returned?

Thanks.

Tobias H
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 Leaders.
December 7, 2022

Here's the most recent audit log.

Errors are caused when customers are commenting on an issue, regardless of status.

No action performed are when agents add comments, but the issue is in a status that should not update the status on comments

Success is when an agent has commented, and the issue is supposed to change status.
image.png

 

So it's doing everything correct, except that it treats customer comments as Errors instead as No action performed. The notifications on the bell / email / jira app works just as expected as well, but I am getting spammed by the error emails. (I know I can simply NOT send out any emails for errors, but I would like to receive them, not just (30x2) times a day)

Ismael Jimoh
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 Leaders.
December 7, 2022

Looking at the error. It seems there is an issue with the actor used to trigger the automation because they cannot perform the action.

Go to the details page of the automation and confirm what is set there.

Also, confirm if there are any actions a customer cannot perform that leads to the failure because this will fail as seen here:

Screenshot 2022-12-07 at 16.58.31.png

Please let me know.

Regards.

Tobias H
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 Leaders.
December 9, 2022

Yes, I know that is what is causing it, but I can't understand why it triggers.

According to the rules in the automation, the rule should only do something if an agent is the actor, and the agents are able to perform the action.

But I guess it checks even before the first IF and sends the error based on that. Very suboptimal in my opinion, but oh well :shrug:

Ismael Jimoh
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 Leaders.
December 10, 2022

It triggers because your initial condition in the When category is met only after this does the actor to perform the action is checked.

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