Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Automatically assign a label to a Jira issue containing the issue key

Mick Might
Contributor
December 23, 2020 edited

Thanks for this explanation. I wonder if you can provide me some more information though on how to automatically assign a label to a Jira issue containing the issue key. 

To explain my use case, I am using a third party app (TestRail) and when I move my issues to a new project, the association that TestRail has to the original issue key is broken. To fix this, I can easily update the TestRail item with the new issue key and the association to Jira is re-established. I have a large number of test items, so want a clever way of automating this. 

I do appreciate that I am using a third party tool but I imagine that having a way of adding a label containing the current issue key would be useful to many Atlassian users in general. This would allow one to use an automation tool such as Selenium to update TestRail items as described above. 

Many thanks for your suggestions in advance. 

Mick

1 answer

1 accepted

0 votes
Answer accepted
Kit Friend
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.
December 29, 2020

Hey @Mick Might  - have you tried using Automation for Jira to solve this? It's pretty easy to play around with.

Not specific to your data but here's an example of adding another kind of label - you might need to play with the JSON options for your scenario: https://community.atlassian.com/t5/Jira-questions/Automation-for-Jira-Automatically-Add-Label-to-Stalled-Tickets/qaq-p/1296772

Mick Might
Contributor
January 22, 2021

Thanks, really helpful reply. 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events