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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,497
Community Members
 
Community Events
184
Community Groups

Need help evaluating Labels column in Formula

I'm trying to create a Structure Formula Column to looks at the Value of the Labels column in an IF statement:

IF(Labels = "KLRisk"; "AML")

no rows in the Formula Column return AML

I've tried no quotes and single quotes around KLRisk with same result.

I;m sure there is something special about Labels column but I can;t find any documentation.

Clip shows my formula is valid but you can also see the Labels column does contain rows with the value I am looking for but is returning nothing in Formula Column?

 Labels Structure Formula.PNG

2 answers

1 accepted

1 vote
Answer accepted
Stepan Kholodov [ALM Works]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jun 03, 2020

Hello Kevin,

The used formula will only work for issues that have one label - KLRisk - and nothing else. If there are several Labels and you want to mark issues that contain a specific one, you need to use the match() function:

if(match(labels;"*KLRisk*");"AML")

I hope this helps. Please feel free to contact us directly at support.almworks.com if you need further assistance.

Best regards,
Stepan Kholodov
ALM Works

@Stepan Kholodov [ALM Works]How would you match an exact label name? Say I had two labels called 'mylabel' and 'orig_mylabel'. If I just 'match(labels,"/mylabel/")' then it would match whichever one of those came first (alphabetically, I guess?). How could I tell it "only match exactly the label named 'mylabel'"?

David

Stepan Kholodov [ALM Works]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jul 10, 2020

Hello David,

Apologies for the late answer. If you want the Formula to match only a specific label, you should state it so in the brackets - if(match(labels,"mylabel") - but please note that this formula works only if there is a single Labels value, it won't work for issues with multiple values.

Please feel free to reach out to us at support.almworks.com if you need more help with the Formula.

Best regards,
Stepan Kholodov
ALM Works

0 votes
Dave Rosenlund _Tempo_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 07, 2021

@Kevin Lyons  &  @David Doria:  You may be interested in the Structure 7 / Formulas / Expr 2 Bootcamp.

Best,

-dave 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events