Forums

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

Can I add an else to a rule condition, and how?

Phil Bustin
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.
February 24, 2023

I created the following rule, but I can't figure if and how I can add an else condition to the last condition (To Region is one of BA, MO).  The new condition could be (Else), although (To Region equals PA) would also work.  For the  new condition, the action would be (Then: Transition the issue to PA Certification).

If it is relevant, I don't know whether our product plan is Free or not.  We don't have automation add-ins.

Rule.jpg

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
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.
February 24, 2023

Hi @Phil Bustin 

This is the second question I have recently seen with this need (if/else in a branch) and I thought this was possible, and it is not currently.  The UX of the rule designer appears to have recently changed to make it more clear when if/else can be used.

For the use case you are showing, a couple of possible work-arounds would be:

  • Easy way: Use different branches over all sub-tasks, including conditions for each region set/query.  This would work as long as they are not dependent upon each other for action results.
  • Harder way: Use different branches, over the exactly matching sub-tasks.  This could be done using advanced branches and smart value, list filtering on Status and Region, and then iterating over any matching sub-tasks.

Kind regards,
Bill

Kelly Arrey
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.
February 25, 2023

@Bill Sheboy @Phil Bustin Sorry, I'm not following.  I see this:2023-02-25_10h43_43.png

Which, when included yields:

2023-02-25_10h46_49.png

I would have thought that was what you were looking for? What'd I miss?

Thanks,

Kel

Bill Sheboy
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.
February 25, 2023

Hi @Kelly Arrey 

I believe Phil wanted to use an if/else structure inside of the branch, not outside of it.

I believe there was a "hack" where these could be created outside of the branch and then drag-and-dropped inside.  That unplanned/unpredictable behavior appears to have been removed.

Kind regards,
Bill

Like Kelly Arrey likes this
Phil Bustin
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.
February 25, 2023

If it can be done using a branch, I'll attempt that.  New to all of this.

Phil Bustin
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.
February 27, 2023

Today, I can't find where to create a branch in my rule.

Phil Bustin
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.
February 27, 2023

I'm back to square one: I need a rule for a sub-task (issue type = Dev Task), so that when it is transitioned (there is only one transition), its parent is transitioned to a particular status.  What would that rule look like, please?

 

Bill Sheboy
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.
February 27, 2023

Hi @Phil Bustin 

As that seems like a new use case, I suggest creating a new question post for it, and link back to any relevant ones for context.  Otherwise only the people following this current thread will see it to offer suggestions.

Kind regards,
Bill

Phil Bustin
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.
February 28, 2023

Good advice.  Done.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events