Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Structure : use FORMULA with script. Filter if a label is there within labels field


i am setting up an IF statement for flagging tickets in a column in a structure. 

If the labels field contains BLOCKED i need the word BLOCK in red.

This works BUT

- if only label BLOCKED is there ==> works

- if >1 label is there (including a BLOCKED) it does not work the IF statement


How can i solve this ? 

thanks for assist





2 answers

1 accepted

3 votes
Answer accepted

Hello @Els Vercauteren 

Setting the labels=xxx condition will only work when there is only one Label in an issue indeed. Using search("blocked", labels) instead should help.

Please feel free to reach out directly at if you need our assistance with anything else.

Best regards,
Stepan Kholodov
ALM Works

When i adjust with Search it works ! Thximage.png

Like # people like this

Extra question

Can i change the smiley to a icon green flag and the blocked to icon red flag ? 

And is an icon bomb also available ?

You can find the list of built-in emojis at the text formatting notation help page (at the bottom of it). You can also use your own images and include them in the formula by their URLs if needed.

Best regards,
Stepan Kholodov
ALM Works

Like # people like this

I adjusted it but it still gives the ELSE part for the example below :-(



Suggest an answer

Log in or Sign up to answer

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