First, I have a branch that creates issues and tags them with a label.
Second, I have a branch that operates on JQL where the filter is
labels in (mylabel) AND created >=-1hr
Two issues were created by the first branch, but the second branch only applies its actions to one of the issues. If I run it again, it gets the second one. Actions are to attach a form and transition the issue.
Using lookup, I can see that the filter is finding both issues so it's fine and the actions work albeit on a single issue. The problem appears to be in the second branching mechanism as it doesn't work on all issues it finds with JQL.
Hello @Anthony Nguyen
Welcome to the Atlassian community.
You mention you have a "first" branch and a "second" branch. Branches do not execute in sequence. Rather they execute in parallel. You cannot count on the actions of the first branch being completed before the second branch starts.
Refer to this:
If you share with us the full rule, we can offer suggestions about changing it or splitting the work into multiple rules.
I was aware of this possibility so I tested it after the fact as well. That was when I discovered it addressed the other issue. Do you think it would have addressed multiple if I had more? I'll test it out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You simply cannot count on the second branch changing all the issues created in the first branch.
You must either restructure your rule so that it does not have a branch that depends on the completion of an earlier branch, or move the functionality of the second branch to a separate rule that can be triggered by the activity of the first branch in the original rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I meant that I tested the second branch manually as a separate rule afterwards where I can count on the first branch having already being done. I still need to experiment with more issues and see if I understand the behavior properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see. Thank you for clarifying.
Without knowing how you constructed the second rule I can't say if it would address all issues created by the branch in your first rule.
In your first rule are you adding the label to the newly created issue within the Create Issue action?
In your second rule is your rule using the Issue Created trigger?
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.