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:

cutting-through-the-noise-breaking-down-hierarchical-communication-channels-and-silos-19-1024.jpg

(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 vote

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!

Anytime!

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

58 views 0 5
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