The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

adding icons to custom fields

Kevin Mote
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 Champions.
April 17, 2013
  • How do I add icons to a custom field (just like the builtin Priority field) in Jira 5.1?

I first tried adding the icons by changing the text of the Custom Field itself (using "Edit Options"). This works, but it prevents me from searching/filtering on the values. I can no longer use JQL such as

Urgency=Low

Instead I am forced to say:

Urgency = '<img src="/images/icons/priority_minor.gif"/> Low'

So next I spent hours trying to use the method described in this post (using JavaScript in the Description field of the "Edit Field Description" dialog (under Field Configurations); more clues here), but this functionality does not seem to be supported in Jira 5.1. (It grabs the custom field from the DOM, but attempts to access the .options attribute, which is undefined.)

Sure seems like there ought to be a straightforward way to do this, but if there is, it escapes me.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
AmandaA
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 Champions.
April 18, 2013

Hey Kevin,

As in this post, we can see one of the plugin vendor comment that "Custom JavaScript in field configuration descriptions do still work in JIRA 5.2.4. They are hard to maintain though so plugin such as JSS or Script Runner may be a better way to go."

So in the meanwhile when you looking for the proper soulution for the scipt, maybe you can have a try on the CustomWare Traffic Lights plugin which can be download and viewd from here:

https://marketplace.atlassian.com/plugins/net.customware.jira.plugin.trafficlight

This plugin allow you add colors to existing fields.

Hope this is helpful somehow, Kevin.

Cheers,

Amanda