Automatically remove labels

Hi,

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

This widget could not be displayed.

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)

This widget could not be displayed.

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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

167 views 1 3
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