Forums

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

Double automation triggering based on same event

Juris Bergmanis
Contributor
August 14, 2023

Hello.

I have problems combining two automations regarding on same field and on same event. We have an SM Automation based on "Issue creation".

If value "X" is selected in custom field, then automatically add "Assignee" with "Y" user. (Everything works so far)

Then I need to add second automation on field - "Assignee".

If "Assignee" value is in group "Z", then send auto comment to the reporter. But somehow I cannot achieve this. Second automation seems not to be working. I do not know the logic of automation ordering, but seems that technically value "Assignee" is still empty while Jira tries to do the second automation.

Because when I directly try to create issue from Jira, by manually selecting "Assignee" upon creation screen, second automation works.

  • I tried to create everything in same automation, not working.
  • I tried to enable "Allow rule trigger", still not working.
  • I tried to combine different events for second automation, for example issue update and even based it on value "X" change, still no success.

Maybe some have an idea how to achieve this.

2 answers

1 accepted

0 votes
Answer accepted
Els Bassant
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.
August 14, 2023

Hi Juris, 

I got this to work within a single automation rule by adding the "Re-fetch issue data" action between adding the assignee and the comment.

So the flow becomes:

  • issue created
  • automatically assign ticket based on value X
  • re-fetch issue data
  • add comment based on assignee

This way the automation re-evaluates who is the assignee after assigning it.

Hope this helps!

0 votes
Juris Bergmanis
Contributor
August 15, 2023

@Els BassantThank you!

That solved the problem.

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