Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Efficient Jira Automation: A Governance Approach

Kiet Ngo
Contributor
July 26, 2023

Jira Automation rules are a powerful tool for streamlining workflows and automating tasks. However, if not organized effectively, they can quickly become messy and difficult to manage. Effective governance practice is essential for ensuring that automation rules are well-organized and easy to use.

In this article, we will discuss the importance of an effective Jira Automation governance strategy and the three key components that make it up, specifically naming convention, labeling convention, and execution monitoring. We will also provide some best practices for organizing and managing Jira automation rules.

 

Naming Convention: The Power of a Well-Named Rule

In the realm of automation rules, a good name is more than just a label. A good naming convention makes it easy to understand the purpose and functionality of a rule. So, what makes a name effective?

jira-automation-naming-convention.jpg

Let's break it down. An ideal rule name encompasses:

  • (Event type)Manual, Scheduled, or Incoming Webhook

  • [Request / issue type] – Short name of the request type or issue type included in the rule

  • [Trigger type] – rule triggers e.g. Issue created, Issue transitioned….taken from Jira automation triggers

  • [Condition type] – vary depending on the trigger type selected

  • Short description – Very short description of the rule in VERB - NOUN - COMPLEMENT. Include keywords such as Slack, Zapier, ScriptRunner, or other specific integration you plan to use in the rule so that later we can quickly search for them. Examples:

    • Notify approver(s) on Slack

    • Call Zapier to generate PDF quote

    • Run ScriptRunner to generate the report

  • If the rule logic is complex, describe the detailed narrative in the Description field

Given an example of an automation rule that notifies the approver when a leave request is submitted for approval, here is how we name our rule:

[Leave Request] [Issue transitioned] [To Do -> Pending Approval] Notify approver(s) on Slack

Why is this naming convention a game-changer?

  • All the key information is packed into the name, offering instant clarity and understanding.

  • Despite its brevity, it remains easy to comprehend, avoiding unnecessary complexity.

  • And the cherry on top? Searching for a specific rule becomes a breeze.

 

Labeling Convention: The Path to Effortless Filtering

Atlassian provides a guide on using labels to organize rules (WHAT), but they don't go into detail (HOW). No need to worry; we will take care of that for you.

Here's the secret: label your automation rules based on two essential elements:

  1. Project: Categorize rules by the project they belong to so that we can quickly filter by the project from the global administration settings.

  2. Integration type: Group rules based on the integration(s) they employ. For example, our team works with a lot of external integration such as Slack, Zapier, ScriptRunner, Email, Atlassian APIs, and other REST APIs….

I lied – It is actually not just two essential elements. Your team should have more categorization criteria than us, then brainstorm which one you need – but don’t overuse and add more than needed.

jira-automation-labeling.jpg

Why is this labeling convention a game-changer?

  • Searching by project becomes a breeze, allowing you to swiftly locate rules within a specific project.

  • With integration-based labels, finding rules across the entire system is efficient, even from the global administration.

  • And fear not, for this labeling system handles rules with multiple integrations with ease.

 

Monitoring Rule Execution via Slack: All Roads Lead to The Automation Account

Execution monitoring ensures that rules are running as expected and that any errors are quickly identified and resolved. And what better way to stay in tune with rule executions than through Slack?

Instead of relying on default practices, try this:

jira-automation-configuration.jpg

Prerequisite

  • Budget your licenses and create a dedicated service account specifically designated for running automation across your organization. Don't be afraid to invest; provide this account with all the necessary resources as if it were a real person: an email account, an Atlassian license, etc. You can name it something like automation@yourdomain.com, or creative names like policer@yourdomain.com or terminator@yourdomain.com

  • Ensure this account has full admin privileges to access and execute all required APIs.

Step-by-step, screenshot-by-screenshot guides

  • Specify this Automation Account as the Owner and Actor for the automation rules.

  • Set Notify when error to E-mail rule owner every time this rule fails option to have failed notifications delivered to automation@yourdomain.com mailbox:
    failed-rules-emails.jpg

  • Create a team-based, centralized medium to receive these notifications. Since we use Slack, we set up a team channel and integrate Slack's email feature to provide an email address:
    dc045032-b96d-4f91-934e-7d8b4b8467a5.png

  • From automation@yourdomain.com, configure email forwarding to forward those failed rule executions to the above Slack email address. Those emails would then appear in the Slack channel like this:
    jira-automation-slack.jpg

  • Optional but recommended: establish a policy for team members to react to failed notifications of services they own by commenting on the cause and proposing possible fixes in the channel.

Why is this monitoring approach a game-changer?

  • By embracing the Automation Account, you segregate configuration responsibilities, ensuring smoother comms between team members.

  • The dedicated Gmail account becomes a central hub for notifications, keeping you informed in real-time.

  • Slack's integration empowers you to categorize and prioritize failed execution notifications, fostering prompt action and efficient troubleshooting.

:info:While we use Gmail and Slack, you can implement the same approach with alternative software like Outlook and Teams.

In conclusion, having effective Jira Automation Governance can greatly improve your experience with Jira. By following the best practices outlined in this article, you can ensure your automation rules are well-organized and easy to use. This will result in better efficiency, less confusion, while also providing time and resource efficiency.

Don't miss the previous two blogs that I shared:

Follow me and stay tuned for the upcoming articles on this topic:

  • Pragmatic Jira Automation: Jira Governance Loop - Using Jira to Manage Jira
  • Pragmatic Jira Automation: Document Generator with Jira, Automation, Confluence, and K15t Scroll PDF Exporter
  • Pragmatic Jira Automation: How Did We Use Jira as a full-pledge CRM system

4 comments

Comment

Log in or Sign up to comment
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2023

@Kiet Ngo I think these are really great ideas! We actually use the same naming convention, and we also use labels.

But I still think that a sort of "automation rule set" concept would make admins' lives so much easier. I mean creating named sets (groups, containers, etc.) from automation rules and adding/removing the whole set to selected Jira projects or Confluence spaces.

I know that labels can be used to represent the set, but label is just a marker, you can't manage the whole labelled rule collection with mass-operations.

Like # people like this
Natasha Richardson
Contributor
June 13, 2024

I agree, groups/folders would be great. How do you manage to name your rules to show they are for the same business process? For example, you need one create trigger rule in one project and another rule using a transition trigger in another project but both pieces work together for 1 workflow/business process? 

Like Susan Waldrip likes this
Hernan Halabi - Elite IT Consulting Group
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 27, 2023

Love the idea, it follows a similar criteria to our naming convention (sorry it's in spanish) of configuration items, certainly will share it with the team.

Like # people like this
Kiet Ngo
Contributor
July 27, 2023

Hey @Hernan Halabi - Elite IT Consulting Group , I can't understand the language but your setup looks more detailed than us. I'd like to do some translation to learn more 

Like Susan Waldrip likes this
Hernan Halabi - Elite IT Consulting Group
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 27, 2023

When I looked for it I was certain that I had the english version as well but looks like I never managed to do it. I'll try to do finish it soon or we can meet and shared thoughts of boths standards :)

Like Susan Waldrip likes this
Sim
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 28, 2023

Great article! That's a systematic approach 👍

Naming conventions are also very useful for naming schemes, workflows and screens.

Like # people like this
Mykenna Cepek
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.
September 23, 2024

I'm a fan of naming things succinctly, and the excessive prefix notation here seems to obfuscates the actual name of a rule. I greatly prefer rule names like:

  • Email business owner list weekly
  • Maintain "Work Started" field
  • Unflag when Done

Rule labels are awesome, and as an organization it totally makes sense to put some thought into how to use them (since they are global across all teams). We kept it simple, focusing on the most commonly used triggers, grouping some:

  • Manual
  • Scheduled
  • On Create
  • On Edit
  • Sprint

When searching for a rule, remember that you can filter on labels AND sort by a column such as Name or Enabled. Even with a few dozen rules in a project, this divides-and-conquers pretty effectively.

We also use Confluence to document our Jira Automation Rules. The "Description" field for each automation rule just points to that Confluence page. The page has a table with three columns: "Rule name", "Rule executes when...", and "Purpose and other notes". This helps the team understand the "Why" and "What" of the automation that affects their Jira project without worrying about the "How". Note that most team members are not Project Admins, so they can't see the automation rules that affect them.

TAGS
AUG Leaders

Atlassian Community Events