Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 return issues.labels which starts with a certain string in rule automation Edited

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?

1 answer

1 accepted

0 votes
Answer accepted

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:

  1. Add a condition to look for the value you want to remove.  If found...
  2. Capture the Labels list as a string, using Join() or an iterator to make it a delimited list, and put it into a Created Variable
  3. Use the string Remove() function to remove your target label, placing the result in another Created Variable
  4. Use the Split() function to separate back into a list to replace the Labels value

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:


Best regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

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...

5,440 views 22 39
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