How can I automatically apply labels to issues when they reach a certain column?

I'd like to automatically apply label(s) to issues whenever they reach a certain column in the workflow, for example, "release blocker" to all issues that have been merged into mainline but not yet tested, so I can keep track of them if they get rejected in testing and need to go through another round of development.

Is it possible to configure columns to apply labels to issues when they get moved into that column?

3 answers

2 votes

Moving to a column in the agile board triggers a workflow transition in the backend. You can configure workflow post functions to set specific values on issues.

There is no post function in cloud that can set the "Label" field value but you can set custom field values using the "Update Issue Custom Field " post function from JIRA Suite Utilities plugin. Set a custom field value and then use it to track the issue. You can probably even try setting a custom field of type "labels"!

 

Andrew, are you simply looking to find issues that were previously in a more advanced workflow status?  If so, you may be able to simply use the 'was' search term in JQL.

e.g. project = MYPROJ and status was Merged

If that won't work for what you're trying to accomplish, though, Jobin's answer is likely the way to go.

This worked perfectly for my use-case. Thank you!

Actually, this worked perfectly until starting a new sprint with issues that were not completed during the last one. Those issues no longer filter in with "status was Merged" if they were only in Merged last sprint. Thanks though.

@Andrew Brown I just tried this out using swimlane queries to keep track of issues that were previously Resolved and this worked well when moving from one sprint to the next. Could you provide more details about how you're using the filter with your board? Are you using swimlanes or card colors?

0 vote
Boris Berenberg Community Champion Feb 23, 2015

There is no way to do this out of the box. You may be able to accomplish this using something analogous to the Automation plugin: https://marketplace.atlassian.com/plugins/com.atlassian.plugin.automation.jira-automation-plugin except made for Cloud.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 21, 2018 in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

1,241 views 10 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you