Automatically remove labels


As part of using JIRA, we use the labels to help us track certain issues (i.e. which issues developers are currently working on, which JIRAs are coming up, etc). When the JIRA gets closed, we need to manually remove the label first before closing otherwise we are not able to remove the label.

I see that there is an option to allow editing of issues in final state, however, the ideal solution would be to allow for a 'macro' to run to automatically remove a label when it gets closed.

Does anyone know if this is possible?

Thanks in advance!

3 answers

1 accepted

Hi Scott,

what you wish to archieve is acutally possible. All you have to do is add a postfunction to your Jira workflow, which will clear your label field when the close transition is launched.

However, you will have to decide if you want to write your own custom plugin to archive this function, or if you want to use an already existing plugin, which will provide such a function (As far as I know, the ScriptRunner plugin might just do it)

Hi Marten,

Thanks for the suggestion, the ScriptRunner looks to be very powerful that is able to do this. I actually had another think about this and I decided to create a custom field that represented my labels, then I used the JIRA Suite Utilities plugin to clear this field when required

As the script runner is for download instances only: has anyone implemented this on an on-demand instance already?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,968 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot