Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Should the last if / else block be empty?


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

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!



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Next level incident management in Jira Service Management

Hello Atlassian Community! We’re thrilled to announce some exciting changes to incident management in Jira Service Management Cloud, in order to give your teams extra muscle during incidents, and ...

1,512 views 20 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you