Hello,
I am Arkadiusz, Jira Administrator with more than 4 years of experience in building, designing and creating projects, workflows and complex business related automation rules using Jira Automation.
The topic I would like to raise is the ability to overwrite a variable declared inside the automation rule.
Until yesterday (05.05.2026) Create Variable could be defined at top of the automation rule, making the variable acessible from anywhere inside the rule.
Allowing you to writeout the variable directly below, inside the IF block or any Branch block.
The flexibility designed some sort of "variable scoping":
* Declaring variable at the top - global variable.
* Declaring variable inside IF block - local variable (accessible only inside that IF block).
Based on that functionality, you could create a global variable and overwrite it using If block with desired value, used later in the automation body (again outside of IF block).
I made a lot of rules like that allowing me to create some sort of validation process based on Business requirements.
For example:
1. Create Variable {{varTest}} at top of the rule with initial value, for ex. "null" (string 'null')
2. IF true then {{varTest}} => A
3. Log action: {{varTest}} => A (outside of IF block, returns A)
4. IF {{varTest}} equals ^(A)$ then sendEmail(to: {{varTest}})
As this example is pure basic, I made a lot of user validation once some of them are raising the request as well as corelating it with different - already created tickets (Branching to different project/work item).
Now it seems, that Atlassian made some change and Create Variables are not being overwritten:
1. Create Variable {{varTest}} at top of the rule with initial value, for ex. "null" (string 'null')
2. IF true then {{varTest}} => A
3. Log action: {{varTest}} => null (outside of IF block, returns null)
4. IF {{varTest}} equals ^(A)$ then sendEmail(to: {{varTest}}) (fails as variable was not overwritten).
This hugely impacts the core logic of any automation rule using Create Variable action.
Due to my concerns Ive already raised the ticket to Atlassian.
Despite that I would like you - if you did use the overwriting variable that way? Do you feel such changes should be annouced (if made intensionally)?