Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to clear the only one value from Label field while moving to other status

Hi Team,

 We have request from user to clear the Label field value, not all values, we need to clear one specific value.

 Project ticket moves from Design IP to DOR CHECK by a member of Analytics Implementation Solution Strategists, the "TRACK" label field value should be removed automatically, and should not clear the whole field values, we have multiple label field values.

We are jira server 8.13.3, and we have JMWE, JSU, Script runner addons.

Could you please suggest on this ?


2 answers

1 accepted

0 votes
Answer accepted

Hi @Lakshmi S ,

actually, JMWE can also do this. You can add a Set Field Value post-function with the following configuration:

  • Field: Labels
  • Value type: Groovy Expression
  • Value:
issue.get("labels")?.findAll{it.label != "TRACK"}

Hi @David Fischer _Innovalog_ , Thank you so much for your quick response.  Its working.


1 vote

Of the three apps you have, only Scriptrunner can do this.

You can write a script that:

  • Reads the current label field (which gets you a "collection" of all the labels in use)
  • Iterates over the collection and either
    • Copies everything you want to keep to a new collection
    • Removes the label(s) you do not want from the collection
  • Writes the new/updated collection back to the label field should have most of the code for writing, and suggest how you go about reading too.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

242 views 2 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you