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 votes
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
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

2,073 views 14 13
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