Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Should the last if / else block be empty?

Nick Read
Contributor
November 29, 2021

I'm having problems with an automation rule that uses IF/ELSE blocks. I've previously been told that I need to explicitly use an ELSE.

 

I don't need the last ELSE block to do anything - if I get to the end of the rule and none of the IFs have trigger, I want no action to occur. 

 

When adding the ELSE, I'm led to believe by one bit of text that it "can be left blank if it is the last else block", but when I do so I get a "block cannot be empty" warning. What am I doing wrong?

Screenshot 2021-11-29 at 11.33.46.png

 

As a workaround I've given the last ELSE block an associated action to add a value to the audit log, but that doesn't seem desirable behaviour.

1 answer

1 vote
Charlie Gavey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 30, 2021

Hi Nick,

When hovering over the final ELSE block, do you see the "X" option to delete this block? (See screenshot below.)

If you try removing only the final ELSE block (not the earlier IF-ELSE blocks) and republishing the rule, does the rule behave as expected for you?

Screenshot 2021-12-01 at 10.30.22 AM.png

 

Hope that helps!

Cheers,

Charlie

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events