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!
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
Cheers!
@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'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can add 'New Condition' before triggering new action
Eg:
Like wise you can automate the rule according to your requirement
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.