I offer paid 30 mins or 60 mins 1-1 consultancy calls.
Jira Courses, Training and Consulting: Sparxsys Trainings
Thanks for coming here, I hope you are enjoying learning here, I have also written some books in case you want to learn a bit more :)
If you need my help with Drupal, Linux, Jira, Scripting, Automation or want to contact me then raise a ticket for me please :) and I will get back to you, promise. At Sparxsys we provide Atlassian consultancy services, reach out to me at ravi at sparxsys dot com

Master Jira Automation: A Guide to Smart Values

Jira automation is a powerful tool, but true efficiency comes from mastering "smart values." These dynamic placeholders allow you to pull data directly from your tickets, turning static rules into intelligent, automated workflows. In this post, we’ll explore how to get started and troubleshoot common hurdles.

Why Use Smart Values?

Automation is great for repetitive tasks, but without smart values, it lacks context. Whether you need to include the issue key in a notification, mention the assignee’s name in a comment, or display a specific custom field value, smart values are the key to unlocking this dynamic data.

Getting Started with Syntax

Smart values utilize a specific syntax to function. They must be enclosed in double curly braces (e.g., {{issue.key}}).

  • Dot Notation: Use dot notation to navigate object structures. For example, {{issue.priority.name}} fetches the name of the priority level rather than a technical ID.
  • Dynamic User Data: Access user details like {{reporter.displayName}} to personalize your communications.

Pro-Tips for Advanced Automation

1. Formatting Dates

Raw timestamps are often unreadable. Convert them into user-friendly formats using the .format() method:

{{issue.created.format("dd/mm/yyyy")}}

2. Handling Complex Fields

  • Custom Fields: You can access custom fields directly (e.g., {{issue."Target Release Date"}}).
  • Multi-Select Fields: Fields like "Affected Components" return all selected values automatically, making them perfect for comprehensive release notes.

Troubleshooting Your Rules

Even experts hit snags. If your rule isn't producing the expected output, follow these steps:

  • Verify Field Spelling: Ensure your field names match exactly what is in Jira. An extra 's' or a typo will cause the automation to return blank results.
  • Consult the Audit Log: When in doubt, check the automation audit log. It provides a detailed execution history that often pinpoints exactly where a rule failed.

Embrace Technical Literacy

While Jira automation is a no-code platform, building a basic understanding of APIs and JSON structures is a game-changer. By understanding how Jira organizes data internally as objects and properties, you can troubleshoot faster and dream up more advanced, efficient automations.

Start simple, iterate on your rules, and leverage the audit log to refine your process. Happy automating!

Subscribe

* indicates required

Please confirm that you would like to from Sparxsys:

You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices.

Want to contact me?