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 votes

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,852 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot