◆Smart Home Ideas Journal

Jira Automation: Step-by-Step Guide to Create Variable Text

By

Have you found yourself in situations where you wish to generate variable text within your JIRA automation processes? You're not alone. Introducing variables in text strings can enhance the flexibility and efficiency of your workflow. Let's explore how you can effectively create and manage variable text in Jira automation.

Before we dive in, it's crucial to understand variables. In Jira automation, variables are placeholders that store and display dynamic data. They enable you to create reusable and adaptable scripts, making your workflows more robust and efficient.

Understanding Variables in Jira Automation

Jira variables can be categorized into two primary types:

Jira Keyboard shortcuts
Jira Keyboard shortcuts
Jira Tutorial – Complete Guide to Project Management and Issue Tracking
Jira Tutorial – Complete Guide to Project Management and Issue Tracking
Not only epics and stories: understanding Jira issue types
Not only epics and stories: understanding Jira issue types

1. **Project-Level Variables:** These are set at the project level and can be accessed and used throughout your workflows. They can store values like base URLs, API keys, or project-specific constants, which are crucial in maintaining a consistent and secure environment.

Defining Project-Level Variables

To define a new project-level variable:

How to Create Issue Templates for Jira?
How to Create Issue Templates for Jira?
How To Use Jira Software For Beginners | Jira Software How To Use
How To Use Jira Software For Beginners | Jira Software How To Use
JIRA Tutorial for Beginners
JIRA Tutorial for Beginners
  1. Navigate to your project settings.
  2. Select "Project-level automation."
  3. Click "Add variable," enter the "Name" and "Value," and choose the "Type."
  4. Click "Add" to create the variable.

Using Project-Level Variables in Automation

To use a project-level variable in your automation script:

  • Access the variable using the `${PROJECT_VARIABLE_NAME}` syntax in your script.

Here's how it might look in Groovy: `${baseUrl}/api`

Managing Issue-Level Variables

Issue-level variables, on the other hand, are specific to the issue being processed. They can be set on an issue during a transition or before processing a transition. This allows for data manipulation and flow control based on the issue in context.

Jira Automation workflow Scrum Master, Business Analyst, Etsy Sales, Too Cool For School, Social Media Design Graphics, Project Management, Real Time, Linux, Social Media Design
Jira Automation workflow Scrum Master, Business Analyst, Etsy Sales, Too Cool For School, Social Media Design Graphics, Project Management, Real Time, Linux, Social Media Design
Jira Software roadmaps | Atlassian
Jira Software roadmaps | Atlassian
10 Best Jira Alternatives You Should Consider in 2025 - Teamcamp Blog
10 Best Jira Alternatives You Should Consider in 2025 - Teamcamp Blog
Features of JIRA software
Features of JIRA software
an info poster with instructions for how to use the jira automat workflow
an info poster with instructions for how to use the jira automat workflow
Jexo brings popular planning tools to Appfire | Appfire
Jexo brings popular planning tools to Appfire | Appfire

Setting Issue-Level Variables

To set an issue-level variable, you can use the `currentIssue.setVariable('VARIABLE_NAME', 'VALUE')` method in your Groovy script during a transition's post-function or an automation rule's post-step.

Accessing Issue-Level Variables in Automation

Just like project-level variables, you can access issue-level variables within your script using the `${ISSUE_VARIABLE_NAME}` syntax. For instance, `${dueDate}`.

Remember, variables are a powerful tool in Jira automation. They allow you to create dynamic, reusable, and adaptable scripts. But as with any tool, using them wisely and appropriately is key to effective use.

an info poster with different types of information
an info poster with different types of information
Introducing Jira Work Management - Inside Atlassian
Introducing Jira Work Management - Inside Atlassian
Building a Custom AI Jira Agent | Towards Data Science
Building a Custom AI Jira Agent | Towards Data Science
Social Post - Technology - Claude Agent for Jira
Social Post - Technology - Claude Agent for Jira
Jira Keyboard Shortcuts Infographic - 2
Jira Keyboard Shortcuts Infographic - 2
the jira logo surrounded by icons
the jira logo surrounded by icons
How to get tech & biz teams on the same page: use Trello and Jira together - Inside Atlassian
How to get tech & biz teams on the same page: use Trello and Jira together - Inside Atlassian
JIRA - Issue Creation
JIRA - Issue Creation
3 steps to build custom Jira reports
3 steps to build custom Jira reports
AI in action: the next chapter for Jira Service Management
AI in action: the next chapter for Jira Service Management
4 tips to get more out of Jira with keyboard shortcuts
4 tips to get more out of Jira with keyboard shortcuts
AI Automation Tools That Save Hours Every Week
AI Automation Tools That Save Hours Every Week
5 project management apps for Jira
5 project management apps for Jira
Novos Sprints no Jira | Atlassian
Novos Sprints no Jira | Atlassian

Next time you find yourself in need of variable text in your Jira automation, embrace the power and flexibility that variables bring to your workflows. Start exploring the immense possibilities today!