I've found some curious behaviour when trying to create a variable in a Jira automation routine. If I create a variable in a branch line so:
{{cake}} was able to be recalled in the email within that branch ("cakecake"), but isn't able to be recalled outside of that branch (the one called "middle").
While trying to debug this behaviour I discovered by chance that by adding a new variable before the first branch somehow resulted in the expected behaviour. ie the automation below worked and the value of {{cake}} was able to be recalled in the email "middle"
Not sure if this is a bug in the way the platform handles variable creation, or I think in my troubleshooting googling i read something somewhere that branches may be processed in parallel, meaning that perhaps the email "middle" is being sent before the branch that creates {{cake}} is executed?
based on what I've read, variables created in branches only live within branches (you lose them when you move outside the branch) but variables created at the top level are accessible during branching, so what you are seeing is expected behavior
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Become an effective Jira admin
Manage global settings and shared configurations called schemes to achieve goals more quickly.
Streamline Jira administration with effective governance
Improve how you administer and maintain Jira and minimize clutter for users and administrators.
Learning Path
Become an effective Jira software project admin
Set up software projects and configure tools and agile boards to meet your team's needs.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.