Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

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

1 answer

1 accepted

0 votes
Answer accepted

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New cloud apps roundup - June 2021

Since our last roundup in April, Atlassian's Marketplace Partners have added over 100 new cloud apps to the Atlassian Marketplace to help your teams work more efficiently. Let’s take a quick look a...

468 views 5 12
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