I would like label to certain Jiras with certain statuses

Zulfiqar Ali Shah Kazmi October 2, 2024

Using the following query, I can view all jiras under couple of statuses,

project = "Project Name" AND issuetype != Epic AND status IN ("Status 1", "Status 2")

Now I would like to add a label "Label 1" to all the Jiras that show up from the above query.

Any help will be much appreciated.

5 answers

1 accepted

3 votes
Answer accepted
pinky_reddy
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.
October 2, 2024

Hi @Zulfiqar Ali Shah Kazmi 

You can Bulk edit and add label to the issues filtered.

FYI,  here is the reference document  https://support.atlassian.com/jira-software-cloud/docs/edit-multiple-issues/

Look for  To edit multiple issues from the issue navigator section in the above document for more details.

Let me know if this worked

Zulfiqar Ali Shah Kazmi October 2, 2024

Thanks so much @pinky_reddy

It worked, I was able to bulk edit some Jiras and added a label.

Thanks.

Like pinky_reddy likes this
1 vote
Simon König
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.
October 2, 2024

Hi,

labels can be set via bulk edit, but if that is not applicable you can use a automation workaround:

Create a rule, use the manual trigger.

Create branch over your query. Then "edit" the issues in the branch you get and select copy from trigger issue.

Save the rule.

 

Create a Test Issue and give it the label you want to use. Then trigger the rule to search your query and copy the label you set on the trigger-issue.

I haven't tested it but this might work.

 

Note: You have to manually adjust the query in the rule, if you want to use different ones.

0 votes
Matt Doar _Adaptavist_
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.
October 2, 2024

You didn't say why you would want to do this. I'd suggest trying to just use JQL since that will pick up changes later on

0 votes
Stephen_Lugton
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 2, 2024

@Zulfiqar Ali Shah Kazmi if any of these answers are useful to you please click the Accept Answer button 

Zulfiqar Ali Shah Kazmi October 2, 2024

@Stephen_Lugton I accepted the answer provided by @pinky_reddy as it worked for me. Thanks.

0 votes
Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 2, 2024

Hi, @Zulfiqar Ali Shah Kazmi 

 

If you want to make such operations regularly, you can make automation rule, that will run by schedule. It will look for issues using JQL query and add ther Action to set reuqired labels for found issues.

Suggest an answer

Log in or Sign up to answer