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,557,009
Community Members
 
Community Events
184
Community Groups

Formula column where the wiki markup contains references to a field?

I'm trying to display the link to jira issues in a structure board where I want the background color of the link text to vary depending on whether a specific field in the jira issue has a certain value.

I'm trying something like this:

("key" in the local variables is intended to refer to the "Key" field holding the JIRA issue ID)

WITH redLink ="{panel:bgColor=#E65A5A}key{panel}"|"https://jira.something.com/browse/key":

WITH greenLink =

"{panel:bgColor=#ADFF2F}key{panel}"|"https://jira.something.com/browse/key":

if (MATCH(JIRA_COLUMN, "*SomeText*"); greenLink; redLink )

 

But the markup in the local variables is not picking up the "key" column...
It's probably something obvious that I do not see...

1 answer

1 accepted

1 vote
Answer accepted

Answering myself since I, typically, found the solution 15 minutes after posting this:

WITH redLink =CONCAT("{panel:bgColor=#E65A5A}", key, "{panel}"):

 

Simple enough!

Nicholas Ellis _ALM Works_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 19, 2021

Hi Pero,

I see that you already figured out the answer for yourself.  I just wanted to explain why it works that way.

When we have a variable like key, Structure will try to define it. It will try to guess what it is based on its name.  Key matches the exact name of a jira field so it picks it up automatically.  But if I wanted to print out "key is KEY-123" I would do it like this:

CONCAT("key is ", key)

The concat function concatenates, or adds two strings together.  Here the first string is "key is " meaning this key is just treated as letters, because it is in a quoted string, while the second key is treated as a variable and pulls the key from the current issue into the formula.

I hope this helps.

Cheers,

Nick Ellis

[ALM Works]

Like Dave Rosenlund _Tempo_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events