JIRA Automation

Deepak
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!
March 6, 2025

Currently I am Working on JIRA Automation. I am able to create the variable, but I am unable to understand how to use it.

2 answers

1 vote
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 Leaders.
March 7, 2025

Hi @Deepak -- Welcome to the Atlassian Community!

With the Create Variable action, values may be stored as text and referenced later in the rule as a smart value: 

I recommend always adding a prefix to the name of variables to avoid confusing the rule logic (and people reading it) by overlap with other smart values.  For example, always adding var to create something like varMyVariable.

 

Please note well: variables are not recognized consistently by all rule components in value or data type, and the scope of variable may impact its behavior. 

If you are having trouble with your rule, context is important for the community to help.  Please post the following: 

  • what type of project is this (e.g., company-managed, team-managed, etc.), 
  • an image of your complete automation rule in a single image for continuity,
  • images of any relevant actions / conditions / branches,
  • an image of the audit log details showing the rule execution, and
  • explain what is not working as expected and why you believe that to be the case.
 

Kind regards,
Bill

0 votes
Akash Singh
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 6, 2025

@Deepak Welcome to Atlassian Community!

When you create a variable in Jira Automation, you can reference and use that variable later in your rule using smart values.
 
For example let’s say you create a variable called myVariable and set it to value from a Priority field. You can then use it in fields like Summary, Description, Comments or even in conditions or branching logic using this syntax:
{{myVariable}}
 
You can use variables in your automation,
  • In Actions: When setting a comment or updating a field, you can include {{myVariable}} directly.
  • In Conditions: You can compare {{myVariable}} to other values in if/else conditions using smart-values.
  • By adding a "Log action" to print the value of {{myVariable}} so you can check if it's working.
Read more about Jira Smart Values here.

Suggest an answer

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

Atlassian Community Events