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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


How to color array values in Jira structure formula

In the Jira structure I have a field(column) with array of values - TeamA, TeamB, TeamC, TeamD, TeamE. One or more than one value can be selected for this field. I want to color the selections like TeamA in Red color, TeamB in Blue color and so on. If and else if is not working in the Jira structure formula. Please suggest. Thanks.



2 answers

1 accepted

1 vote
Answer accepted
Stepan Kholodov _Tempo_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 02, 2023

Hello @NW 

You can try to use a formula like this:

with team1 = if search("team1", fieldname) : "{panel:bgColor=#ADFF2F}Team1{panel}":
with team2 = if search("team2", fieldname) : "{panel:bgColor=#FAD000}Team2{panel}":
with team3 = if search("team3", fieldname) : "{panel:bgColor=#E389B9}Team3{panel}":
with team4 = if search("team4", fieldname) : "{panel:bgColor=#14AAF5}Team4{panel}":
with team5 = if search("team5", fieldname) : "{panel:bgColor=#FF9933}Team5{panel}":

if fieldname: array(team1, team2, team3, team4, team5)

Where fieldname is the name of the field in question.

I hope this helps. If you need further assistance, please reach out to us directly at our support portal.

Best regards,
Stepan Kholodov

It works! Thank you so much @Stepan Kholodov _Tempo_ . 

Like Stepan Kholodov _Tempo_ likes this
0 votes
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 30, 2023

Can you please help how to retrieve each value from an array using structure formula.

Suggest an answer

Log in or Sign up to answer