You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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 ?
Thanks!
Hi @Lakshmi S ,
actually, JMWE can also do this. You can add a Set Field Value post-function with the following configuration:
issue.get("labels")?.findAll{it.label != "TRACK"}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Will this option clear any labels of linked issues? We would like to clear a label when workflow transitions from Fixed to Ready for Test but only if label value = blah and like the issue above if the label has more than 1 value, we don't want it to clear other values.
The other dilemma is that we don't want to clear label values for any sub tasks linked to that specific issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of the three apps you have, only Scriptrunner can do this.
You can write a script that:
https://library.adaptavist.com/entity/update-the-labels-for-an-issue-in-jira should have most of the code for writing, and suggest how you go about reading too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.