-
Bug
-
Resolution: Not a bug
-
Low
-
None
-
9.0.3, 9.1.1
-
None
-
Severity 3 - Minor
Issue Summary
When using the "Create variable" action within a branch, you'll usually be unable to access the stored value outside the branch.
However, if you create a different variable before branching the rule, and then create the variable inside the branch, you will be able to access the variable created inside the branch outside of it.
This is reproducible on Data Center: yes
Steps to Reproduce
- Create an automation rule.
- Branch into another issue.
- Create a variable inside this branch.
- Try using the variable outside the branch.
- The value will be blank.
Expected Results
A4J should be able to access the data from variables created inside branches.
Actual Results
A4J is only able to access the data from variables created inside branches if another variable was created beforehand in the main execution path.
Workaround
Since the data from variables will be available outside their creation branch if another variable exists beforehand, we can create a variable before branching the rule, and ignore its value.
- Create an automation rule.
- Create a variable with any value on it.
- Branch into another issue.
- Create a variable inside this branch.
- Try using the variable outside the branch.
- The value will be available.
- relates to
-
AUTO-154 Automation: Ability to use variable outside of a block - variable is not updated on main branch if created inside an if/else or branch block
- Gathering Interest
-
JIRAAUTOSERVER-985 Automation: Ability to use variable outside of a block - variable is not updated on main branch if created inside an if/else or branch block
- Gathering Interest