Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,005
Community Members
 
Community Events
168
Community Groups

Create Auto Labeling rule

jared I'm New Here Aug 18, 2022

Hi, 

Is there a way to search for specific keywords inside a ticket and automatically assign it a label or tag?  

e.g. we have an automated access request system that pipes its data into JSM and has the same few keywords when it completes a ticket. We want a rule to search for those key words and assign it a label so we can create better reporting. 

1 answer

0 votes

Hello @jared

Thank you for reaching out.

You can use an automation rule to properly check the resolved issue against a JQL query, properly checking if the issue matches specific keywords on any text fields and adding the relevant labels. These would be the steps:

  1. Navigate to your project > Project settings > Automation
  2. Create the following automation rule, replacing the keyword1 and keyword2 with the relevant keywords you need:
    Screen Shot 2022-08-19 at 6.45.29 PM.png

You can check the documentation below for more details about the JQL operator used in the Automation:

JQL CONTAINS ~ Operator 

Let us know if you have any questions.

bmccoy Atlassian Team Aug 22, 2022

Hi!

Another option would be to use the issue field condition if the keyword search is simple e.g. 

Automation - Code Barrel JIRA 2022-08-23 09-17-30.png

Or if you need something a bit more complex, you can use our regex option in the advanced conditionAutomation - Code Barrel JIRA 2022-08-23 09-18-12.png

Both of these can run a bit faster than the JQL condition.

Cheers,
Brydie

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events