Forums

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

How do I use a wiki markup formula to be used to display certain labels

lau pel June 9, 2023

Hi,

I  know that Labels are not the best way to be used to display a list of issues, but it's widely used. I would like to create a wiki markup formula for a field in my Structure that would show a message in column where a specific label would be added to Epics, does not matter how many different labels the Epic has already.

If I use:

IF(issuetype= epic and labels = ("Q2_NOT_FINALIZED");"{color:red}NOT FINALIZED{color}")

this does not show the Epics with other labels together with my "Q2_NOT_FINALIZED"

The formula to be used should be "Labels in ("Q2_NOT_FINALIZED") but it's not supported.

Can you suggest?

thanks

Laura

1 answer

0 votes
David Niro
Atlassian Partner
June 12, 2023

Hello @lau pel ,

The syntax you will need is this:

lIF issuetype = "EPIC" AND labels.FILTER($ = "Two_Two")!= undefined:
":panel[NOT FINALIZED]{color=red}"

Please let me know if it helps!

Best,
David

lau pel June 22, 2023

Thanks for the suggestion, I make up a little bit and used the following:

IF issuetype = "EPIC" AND labels.FILTER($ = "MYLabel")!= undefined:
"MYLabel"

 

Now I have a column displaying only this label, when it's present in the Epic, even together with other.

Now I need to have this MyLabel coloured in red.

Can you help with this as well?

thanks

David Niro
Atlassian Partner
June 22, 2023

Hello @lau pel ,

That would be this part:

 ":panel[MYLabel]{color=red}"

You will need to change the format from "General" to "Markdown"

Best,

David

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events