Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I pass a variable created in jira automation inside another smart value field?

Ramya R
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2026

{{#webResponse.body.virtualVersions}}
{{#if(equals(id, versionID))}}
{{customFields.69a18668c0678ghr67iygh}}
{{/}}
{{/webResponse.body.virtualVersions}}

here versionID is my variable created. I want to pass this dynamically. But it's not rendering the variable value. The rule runs successfully but fails to fetch the value needed.

2 answers

4 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 28, 2026

Hi @Ramya R 

Short answer: that is not possible, and a workaround is needed.

 

For a long-format iterator in automation rules, such as {{#someList}} do something {{/}} only data from the iterator scope, and lower, is accessible.  No outside data such as a created variable can be seen inside the iteration.  This is a long-standing limitation of such iterators, and I recall there are several suggestions and defects for the symptom in JAC.

There are two possible workarounds for your scenario, depending upon if your virtualVersion's ID values are unique in the web response: dynamic list searching, or a dynamic lookup table.

#1) Dynamic List searching methods (This works for unique or non-unique ID values.)

#2) Dynamic Lookup Table (This only works for unique ID values.)

  • Using the web response, parse the data to save the ID and your custom field in a Dynamic Lookup Table and then use your created variable to lookup the desired value.
  • There is an example in the help documentation for this same scenario with a web response, so search for the text "Example using Send Web Request" on the page.

Please try one of those approaches and then let me know what happens.  Thanks!

 

Kind regards,
Bill

0 votes
Joseph Chung Yin
Community Champion
March 1, 2026

 - 

Welcome to the community.   input and suggestions are right on the point, I totally agreed with him.

The key thing that you need to ensure where your variables are defined because some variables will not be available outside the section of your automation rule setup.

Looking forward to your findings.

Best, Joseph Chung Yin

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events