Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Els Vercauteren
Contributor
January 13, 2022

Hi,

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

Els

 

 

image.png

2 answers

1 accepted

3 votes
Answer accepted
Stepan Kholodov _ALM Works_
Atlassian Partner
January 13, 2022

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 support.almworks.com if you need our assistance with anything else.

Best regards,
Stepan Kholodov
ALM Works

Els Vercauteren
Contributor
January 13, 2022

When i adjust with Search it works ! Thximage.png

Like # people like this
Els Vercauteren
Contributor
January 13, 2022

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 ?

Stepan Kholodov _ALM Works_
Atlassian Partner
January 14, 2022

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
0 votes
Vikrant Yadav
Community Champion
January 13, 2022
Els Vercauteren
Contributor
January 13, 2022

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

 

image.png

Suggest an answer

Log in or Sign up to answer