Two rules being triggered by automation
Asked by Jacob Hidas:

Hi! Long-time forum reader, first-time poster here. Hopefully I explain this clearly enough so that it makes sense.

I've got two forms that I created in Asana that each trigger an issue to created with a different issue type, let's call them training and design.

The design form works as expected, but when the training form is filled out, it is creating 2 cards (both design and training) and triggering both email rules. Looking at the audit log, I see that the design rule is running first, but I don't see why it's being triggered, as in Asana it's clearly creating a card with the issue type Design and not Training.

Any guesses as to why it's not ignoring that rule and moving on to the Training one?

Thanks in advance!


Answers:
author: John Funk
body: Hi Jacob,

When you are talking about the rules and audit log - are you talking about those in Jira or in Asana?

If Asana, you would need to check there as Mattias says. If in Jira, can your share the rules that you have?

comments: author: Jacob Hidas
body: Hi [@John Funk](/t5/user/viewprofilepage/user-id/7148) - thanks for your response. If you say my response below, you'll see the way the rule is set up in Asana. What I was referring to in my post was mostly about Jira.

So I have a few rules set up related to this.

1. If the form is filled out for a design service, then it triggers the following:

![Screen Shot 2022-10-04 at 3.36.17 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/219199i6B88D944A5961B1F/image-dimensions/91x325?v=v2 "Screen Shot 2022-10-04 at 3.36.17 PM.png")![Screen Shot 2022-10-04 at 3.38.59 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/219200iC11CBDCB8BCA6969/image-dimensions/118x330?v=v2 "Screen Shot 2022-10-04 at 3.38.59 PM.png")this email one is actually longer, but it's the same setup for a bunch of different colleagues with this if/then.

When I created the same rule in Asana for training requests, with a similar rule for sending an email out to the appropriate colleague, two jira cards were created - it triggered a design card and a training card at the same time, as you can see here:

![Screen Shot 2022-10-04 at 3.41.42 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/219201i965871B12FE64995/image-size/large?v=v2&px=999 "Screen Shot 2022-10-04 at 3.41.42 PM.png")

When I look at the audit log for when this happened, you can see that it went through all the rules and both were triggered, even though the form that was filled out in Asana was set to create a Training issue, not a Design issue (see blue highlights)

![Screen Shot 2022-10-04 at 3.43.08 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/219202iA71FD943B08F5753/image-size/large?v=v2&px=999 "Screen Shot 2022-10-04 at 3.43.08 PM.png")

Let me know if that helps clarify what I'm trying to figure out here! My best (and only) guess is that when Asana sends the request to Jira, Jira sees the request before the issue type, and is therefore going through the rules until it realizes it's a specific issue type that it should follow the rules of, not both.


author: John Funk
body: Did you check the issue type of the Training Service issue to see what value it actually got created with? You can look in the History of the issue.


author: Jacob Hidas
body: Hi [@John Funk](/t5/user/viewprofilepage/user-id/7148) - checked and nope, each issue was created separately, no changes in issue type. The only change is the automation on one of them making me the assignee.

![Screen Shot 2022-10-05 at 10.42.31 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/219358i34B663E8297E857A/image-size/large?v=v2&px=999 "Screen Shot 2022-10-05 at 10.42.31 AM.png")![Screen Shot 2022-10-05 at 10.42.24 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/219357i2186ADB4F3EA9E3C/image-size/large?v=v2&px=999 "Screen Shot 2022-10-05 at 10.42.24 AM.png")


author: John Funk
body: And they have different issue types?


author: Jacob Hidas
body: Hi [@John Funk](/t5/user/viewprofilepage/user-id/7148) sorry yeah I guess my screenshots weren't clear! Each card created was for a different issue type, one Training, one Design Service.


author: John Funk
body: It would still fire the rule, but it should fail at the Condition and not be successful. I would contact Atlassian Support to see what the rule still processed. Please post back here with the solution so we can close this one out for future readers.

<https://support.atlassian.com/contact/#/>


author: Jacob Hidas
body: Thanks for confirming that [@John Funk](/t5/user/viewprofilepage/user-id/7148) . I've asked my admin to reach out and will circle back!


author: John Funk
body: Sounds good!


author: Jacob Hidas
body: Hey [@John Funk](/t5/user/viewprofilepage/user-id/7148) I figured it out with the help of Asana. Jira's support looked into it, but in the end it was on my Asana set up and user error on my part.

When I created the sub-boards, the main board still had a Jira rule for creating a Design Service issue whenever a task is added. I had another rule from the sub-board to create a task also on the main overview board....so even though the training card was on a sub-board, the task that got added to the main board ran the Jira rule, hence creating two issues.

After deleting the forms and rule from the main board, both boards now independently create Jira cards for the separate issue types!

Thanks again for your help! What a relief to unravel this one!


author: John Funk
body: Fantastic! So glad you got it sorted out!


author: Matthias Gaiser _K15t_
body: Hi [@Jacob Hidas](/t5/user/viewprofilepage/user-id/4751726)

I think you've explained your issue well enough for the start. However, you're talking about Asana which is not an Atlassian product and probably not that many can help you here. I'd recommend to checkout [their forum](https://forum.asana.com/) instead.

Having said that, without knowing Asana, I'd check the trigger part of your form/rule if there's a way to restrict it for one case only.

Or try out Jira Work Management if that fits your use case better.

Cheers,  
Matthias

comments: author: Jacob Hidas
body: Hi Matthias - thanks for your response. I know Asana isn't Atlassian, and unfortunately nobody responded to me on Asana's forum so I figured I'd try here (and already having better luck)!

This is the only thing I can do in Asana, which is why I think it's something with combatting rules being triggered in Jira. I had a similar setup for my other form, the only difference being the Issue type was Training not Design Service. (I deleted it for now just to try and keep my board clean until I figure out the issue).

![Screen Shot 2022-10-04 at 3.30.52 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/219197iB00C98B7AB049B1A/image-dimensions/149x219?v=v2 "Screen Shot 2022-10-04 at 3.30.52 PM.png")

I'll look into Jira Work Management, but that'll take me a bit of time to explore and see if that's a better way to work. Right now, I've got a lot of automations set up with my current Jira process, so I'd have to see if they switch over.