I have a rule to remove the labels fields whenever an issue is edited. I want to remove the label field only if it starts with a certain string, ex- abc.
So if I have two labels, abc-123 and pqr-234, the rule should remove the abc-123 from labels list. I have a tried a lot of different smart values in rule advance json but it ends in json error.
How to achieve it?
Hi @priyank_agrawal -- Welcome to the Atlassian Community!
There is no smart value function to remove one item from a list field yet. The work-around I found was to use string, list, and create variable handling:
If you instead want to update Labels with advanced editing JSON, change the above step (2) to format in the JSON syntax, and change step (4) to leave the item as a string.
Try this, and if you need more details, here is a step-by-step for how to do this with Component replacement. The same method should work for Labels.
Here is the documentation on advanced field editing with JSON, the string functions, and the list functions I used to do this:
When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...
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