Docs Improvement / clarity around nesting IF/ELSE blocks

Description

Nested branches are currently not supported. And the product documentation here:


https://docs.automationforjira.com/getting-started/conditions.html

does not fully describe the limitations of branching.


Here are some examples discovered where “If else block” and “Branch rule / related issues” cannot be used (they are not offered as components to add to the rule). I express the following use cases as “Steps to reproduce”.

1) Create Rule. Any Trigger. Add component > New condition > If/else block > add any condition > save component. Now try to add another If/else block to either the Then branch or the Else branch — you can’t, even if you create an Action component first. In other words, you can’t nest the If/else block. Or maybe only one If/else block is allowed per rule? Either way, it’s a frustrating and undocumented limitation.

2) Create Rule. Any Trigger. Add component > Branch rule > Type=Parent > save component. Now try to add another “If/else block” or “Branch rule” to the “For Parent” branch — you can’t, even if you create an Action component first.

My guess is that only one “branching” component is allowed per rule (or we could say “one branch per rule”). No other computer language prevents you from expressing “if A then

{ if B then X else Y }
else Z”.

see this issue for more info: https://codebarrel.atlassian.net/projects/CBS/queues/custom/24/CBS-15194

Status

Assignee

Simeon Ross

Reporter

John McKiernan

Links

1

Fix versions

Configure