◆Smart Home Ideas Journal

Master Jira: Smartly Create Variables for Added Value

By

In the dynamic world of project management, efficiency and customization often go hand in hand. Atlassian's Jira, a powerhouse in issue tracking and project management software, empowers teams to extend its functionality through various mechanisms, including the use of Groovy scripts. One such extension is the ability to create smart values with variables, empowering teams to auto-categorize and route issues seamlessly.

By leveraging Groovy's dynamic, agile nature, Jira smart values can be sculpted to reflect your team's unique processes. They can be used to auto-assign issues, set up Component/s, status, priority, or even labels, transforming the way work gets done. Let's delve into how you can create these smart values using variables.

Understanding Jira Smart Values & Variables

Jira smart values are pre-defined values that can be set to automatically populate certain fields when creating or editing an issue. These values can be static (default) or dynamic (using variables).

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
# Master JIRA Like a Pro! | Vikaas Daruri posted on the topic | LinkedIn
# Master JIRA Like a Pro! | Vikaas Daruri posted on the topic | LinkedIn

Variables, on the other hand, are placeholders that allow for dynamic values. They pull in relevant data from Jira, such as the issue's project or reporter, and use it to create a tailored smart value.

Variables to Capture Project-specific Data

Smart values can be designed to capture data relevant to the project. The 'Current Project' variable (${currentProject}) is commonly used for this purpose. For instance, when setting up a smart value for the Component/s field, you can use this variable to normalize issue component assignment based on the project it's being reported in.

How to Create Issue Templates for Jira?
How to Create Issue Templates for Jira?
Main Jira Concepts Infographic
Main Jira Concepts Infographic
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

For example, let's say your team works on two projects - 'Jira Server' and 'Confluence Server'. You can create a smart value that sets the Component/s field to ' сделать ' (make) for the 'Jira Server' project and ' документация ' (documentation) for the 'Confluence Server' project. Here's how it would look:
${currentProject} == 'Jira Server' ? 'сделать' : ${currentProject} == 'Confluence Server' ? 'документация' : ''

Variables to Set Issue Priorities or Status

The priority or status of an issue can be set based on its project or other contextual data. For this, you can use variables like ${currentProject}, ${currentIssue:reporter}, or even custom fields.

Consider a scenario where you want to set the ' Bug' status for any issue created by the 'john.doe' user in the 'Jira Server' project. You can do this by using the ${currentIssue:reporter} variable, like so:
${currentIssue:reporter} == 'john.doe' && ${currentProject} == 'Jira Server' ? 'Bug' : null

Master JIRA COURSE
Master JIRA COURSE
Introducing Jira to your teams and company
Introducing Jira to your teams and company
Jexo brings popular planning tools to Appfire | Appfire
Jexo brings popular planning tools to Appfire | Appfire
the jira logo surrounded by icons
the jira logo surrounded by icons
JIRA Tutorial for Beginners
JIRA Tutorial for Beginners
Not only epics and stories: understanding Jira issue types
Not only epics and stories: understanding Jira issue types

Matching Variables with Your Workflow

To truly leverage Jira smart values and variables, they should be crafted to mirror your team's workflow. This ensures that issues are automatically routed to the right teams, categorized correctly, and prioritized efficiently.

Considering your team's processes, take a look at common attributes that can be automated, such as the default issue reporter or assignee, component, priority, or labels. Think about how these can be linked to the project or issues themselves to streamline your workflow.

General Variables for Defaults

Jira provides several general variables that are not context-specific. These can be used to set default values for smart fields that are not project-specific:

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
the jira board is designed to help you learn how to use it for projects
the jira board is designed to help you learn how to use it for projects
Trello vs Jira: Which Project Management Tool Should You Choose in 2026?
Trello vs Jira: Which Project Management Tool Should You Choose in 2026?
Jira Pricing Guide: Choose the Right Plan for Your Team
Jira Pricing Guide: Choose the Right Plan for Your Team
Mastering Jira for Mobile App Development: Proven Strategies for Issue Tracking and Management
Mastering Jira for Mobile App Development: Proven Strategies for Issue Tracking and Management
Best Jira Alternatives Of 2025
Best Jira Alternatives Of 2025
small figurines standing on top of wooden blocks that spell out the word value
small figurines standing on top of wooden blocks that spell out the word value
Variables in JavaScript Explained Simply
Variables in JavaScript Explained Simply
Jira: Project Management for the AI Era
Jira: Project Management for the AI Era
Atlassian Jira
Atlassian Jira
Jira Software Project Management for Scalable Agile Teams
Jira Software Project Management for Scalable Agile Teams
an info poster with different types of information
an info poster with different types of information
Jira: Project Management for the AI Era
Jira: Project Management for the AI Era
  • ${defaultProjectKey}: Populates the project key for default projects
  • ${defaultReporter}: Sets the default reporter for new issues
  • ${defaultAssignee}: Sets the default assignee for new issues

You can use these variables, among others, to set up efficient defaults that work for your team's default projects.

Custom Field Variables

When dealing with complex workflows, it's not uncommon to rely on custom fields. Jira allows you to use these fields in your smart values with the syntax {myCustomField}. For instance, if you have a custom field named ' Durante' (for duration), you can use it in your smart value as ${customFieldDurante}.

Remember to replace ' Durante' with the correct name of your custom field. You can find the name of your custom fields in the issue detail view or in the Jira admin settings.

If you have other specific fields or values that follow unique patterns, you can define variables for them to maintain consistency and ease management of your smart values.

By cleverly crafting your smart values with variables, you can ensure that Jira works as hard as it can to optimize your team's processes. Don't shy away from exploring the depths of Jira's capabilities, as efficient, automated workflows can lead to a productivity boost that will propel your team forward. Continually refine and re-evaluate your workflows to ensure that your smart values are still serving you well as your processes evolve."