Forums

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

Can an automation treat multiple conditions separately?

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.
June 5, 2023

I would like to build an automation that can create multiple sub-tasks, based on one or more checkbox values--for example, 3 checkbox values that can be checked or not, in any combination.  Would I need 3 separate automations, or can one automation handle the 3 conditions separately?

I tried listing the conditions one under the other, but they are treated as nested conditions, so if the first checkbox is not checked, but the second is, the second condition won't be met.

If I try if-else blocks, I'm pretty sure the conditions would exclude each other, instead of allowing combinations of conditions.

2 answers

1 accepted

0 votes
Answer accepted
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.
June 5, 2023

I noticed a couple of suggested posts, and one provided the answer--insert branches.  That worked.

1 vote
Rik de Valk
Community Champion
June 5, 2023

Hi @Phil Bustin , 

You can use If/Else blocks. However, you shouldn't use the Else-part. Simply end the entire block and start a new one for the second conditional issue creation action. 

  • Trigger
  • IF-ELSE: checkbox one = true
    • Then: Create issue
  • Add else (none)
  • IF-ELSE: checkbox two = true
    • Then: Create issue
  • Add else (none)
  • If-Else: checkbox three = true
    • Then: Create issue

Have a nice day! Rik

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.
June 5, 2023

I'll try that tomorrow.  I thought I tried it today without success, but we'll see...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events