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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,076 views 15 13
Join discussion

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