In one of my Spaces (aka Projects), I set up some Automation rules that are meant to work like this:
Simply put, these are the conditions:
– If Team = Team A
----- then assign it to Greg (Team A's dev lead)
– If Team = Team B
----- then assign it to Joe (Team B's dev lead)
– If Team = Team C
----- then assign it to Bob (Team C's dev lead)
and so on...
This automation will correctly process the first condition, when Team = Team A, but does not continue through these If...then...Else rules when Team = Team B, C or D.
Why not? Shouldn't it walk though this sequence of conditions from A to D? ...but it doesn't. The Work item only gets assigned properly when the very first rule meets the JQL passed in.
In short, I guess I'm trying to replicate a Case statement:
When Team = A THEN assign to Greg
When Team = B THEN assign to Joe
When Team = C THEN assign to Bob
Am I asking too much from Jira's new automation feature?
PS- the only "components" I can add in this new Automation feature of my Jira Space is (and in this order from the Jira UI):
THEN: Add an action
IF: Add a condition
FOR EACH: Add a branch
PLUS: Add an advanced component
Hi @John Jones
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
When using the if / else condition block in a rule, that would continue processing until a condition is met or the end, when none match.
When using other condition types, the rule will stop as soon as a condition is not met.
Kind regards,
Bill
It would help if you included a screenshot of your automation, so my answer will be based on an assumption that you are using the if condition instead of if/else. If that is the case then it makes sense why the automation only works for Team A, because if you select Team B and using multiple if conditions it will stop on the first one since Team A is not selected. You should also be able to verify that by looking at the audit log to see where the automation stops.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for your replies. I don't believe this new Automation feature offers an If/Else condition. I'm on Cloud and here's the screen shot of the rule builder UI:
an If/Else component would be nice, but I don't see that as an option to chose from:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.