- 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.