JIRA Custom Field with 'Status' Appearance

I am trying to recreate the 'How are we tracking?' custom field from the Project Central demo at Summit15.

Here is a slide displaying the custom field:


(Taken from Slide 19 here: https://summit.atlassian.com/videos/interact/communication-silos)

It looks like this field is a Single-Select custom field displayed like the Confluence 'Status' macro, coloured either green, yellow or red. But I'm unclear how to create a custom field with this appearance.

Can I achieve this appearance and behaviour with the default JIRA and Confluence fields? Or with a plugin?

Thanks for any suggestions.

1 answer

1 accepted

0 votes
Accepted answer

We achieved this by having the custom field values for "How are we tracking" be AUI span classes. As the CSS is already loaded it displays as the lozenges when viewed in the browser. Can be a little less clear when using a REST endpoint though, or searching as the value is the whole thing not just "On Track" etc. So the possible values of that field would be:

  • "<span class='status-macro aui-lozenge aui-lozenge-success'>On Track</span>"
  • "<span class='status-macro aui-lozenge aui-lozenge-current'>At Risk</span>"
  • "<span class='status-macro aui-lozenge aui-lozenge-error'>Off Track</span>"

Edit: As noted below you need to enable the html macro in the system Wiki Renderer Macro's Plugin.

Thanks Ron for this explanation. Can you direct me to any documentation for how to implement this in our JIRA instance? Is the CSS loaded by default on all JIRA instances, or do we need to do that manually? Or does it rely on a particular type of custom field? Thanks again for taking the time, appreciated.

I figured this out by enabling the html macro in the system Wiki Renderer Macros Plugin. It's working now -- thanks again!


Hi, is this still the best way to go or is there something newer and less "hacky" in the current JIRA version to achieve the same?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,519 views 15 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you