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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,639,444
Community Members
 
Community Events
196
Community Groups

Jira Automation Create Variable bug

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:

snip1.png

 

{{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"

snip.png

 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?

2 comments

That's exactly my problem.

Screenshot_7.pnga

Can't use this variable outside the branch.

To work i just used lookupissues

Screenshot_8.png

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

see: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Create-variable-New-component/ba-p/1448118

Comment

Log in or Sign up to comment