Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding labels to ticket based on ticket fields/information

Melle van Keulen
Contributor
November 1, 2022

I was wondering how to automatically add labels to an issue after creating it. Like when you create a support ticket at Atlassian, you fill in some information and it autoamtically adds that specific information as multiple labels to the ticket.

There are most likely several ways. I would love to hear your tips/best practices!

2 answers

0 votes
Tharaka_Hettiarachchi
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.
November 1, 2022

Hi @Melle van Keulen ,

 

You can do this using Jira automation (Project Settings -> Automation -> Click Create Rule)

1. Create new trigger as 'Issue created' -> The automation will triggered when created ticket

2. Add new action as 'Edit issue'

In there you can select the field that you need to change.

and can assign a label

So It will be added automatically after each issue creation

Screenshot 2022-11-01 at 15.57.29.png

 

Cheers!

Melle van Keulen
Contributor
November 1, 2022

@Tharaka_Hettiarachchi @Gaurav Hi guys, thank you for your reactions. 

Let me phrase the question a bit different: How do you (automatically) determine which labels to attach to the ticket? Based on multiple fields like 'Components', 'Summary', 'Description'.

Tharaka_Hettiarachchi
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.
November 1, 2022

You can add 'New Condition' before triggering new action

Eg: 

Screenshot 2022-11-01 at 16.14.47.png

Like wise you can automate the rule according to your requirement

Like Gaurav likes this
Melle van Keulen
Contributor
November 1, 2022

@Tharaka_Hettiarachchi @Gaurav All right so in your example the summary contains 'iOS', but now it needs to add the label 'iOS' to the ticket. And there are many more words we want to add labels for.

So how to realize this on large scale?

Gaurav
Community Champion
November 1, 2022

Hello @Melle van Keulen 

In order to scale this up, you will need to create an if/ else construct, where you can check for more values apart from the one mentioned in the example.

Could you please explain the need to update the data in the 'Labels' as these can be changed by the user? Also, as Labels ate free text you may have multiple variations for the same word, which may prove difficult when you search the data.

Hope this helps.

--GG

0 votes
Gaurav
Community Champion
November 1, 2022

Hello @Melle van Keulen 

In my opinion, this can be best handled by Automation rules. The rules can be triggered on the issue creation and relevant labels can be added to the ticket.

Hope this helps.

--GG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events