Forums

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

Automation rule running more than once for a single event

Simon Bramfitt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2023

I have a simple automation than is triggered whenever an issue is updated.

If the assignee is blank it updates the assignee field to make it the user who triggered the event.

Automation.png
For some reason, the rule is being triggered two or three times whenever an issue is updated with the status being returned as Success, No Action Performed, or Some Errors.

 

JSM Auto Assign.png 

Any ideas why?

 

thanks 

 

3 answers

2 accepted

1 vote
Answer accepted
Mark Segall
Community Champion
May 31, 2023

Hi @Simon Bramfitt and welcome to the community!

Issue Updated is very generic.  If the user is making multiple updates to an issue, it can trigger it to execute multiple times.  I would recommend instead triggering on either issue transitioned or Field Value Changed instead.

0 votes
Answer accepted
Tansu Akdeniz
Community Champion
May 31, 2023

Hi @Simon Bramfitt 

Welcome to the community.

SOME ERRORS -> User can not be assigned. User who triggered the event doesn't have Assignable User permission in this project.

NO ACTIONS PERFORMED -> If assignee exists in the ticket, automation starts but since assignee is not empty, it doesn't take any action.

*As an alternative to automation, you can use condition or post-function in workflow to ensure assignee is not empty or to assign to current user automatically.

0 votes
Simon Bramfitt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 1, 2023

Thanks @Tansu Akdeniz 

I'm starting to think that this is timing related - the user triggering the script can manually assign the ticket, and the automation reports an error only when the user performs that step. 

I'm still very new to JSM, so automation looked to be the easy way out.  I'll have to dig deeper if I'm going to follow your suggestion.

Suggest an answer

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

Atlassian Community Events