Priority names in Jira’s Issue Navigator

by | Jul 11, 2018

While priority icons can be easily understood in most Jira instances, it is often helpful to also show the name. The default icons can be easily misunderstood by colorblind users, and new users can easily misinterpret the icons alone. The workaround is to add a single line of code to the priority column velocity template.

Warning: Direct modification of velocity template files is not supported by Atlassian. You may need to revert this change if you face a support issue which is related to it. However, we’ve never seen this cause an issue.

Backup and then edit this file:

/atlassian-jira/WEB-INF/classes/templates/jira/issue/field/priority-columnview.vm

The patch is:

6c6
< <img loading="lazy" title="$textutils.htmlEncode($priority.get().getNameTranslation(), false) - $textutils.htmlEncode($!priority.get().getDescTranslation(), false)" src="$iconurl.get()" alt="$textutils.htmlEncode($priority.get().getNameTranslation(), false)" width="16" height="16" align="absmiddle" border="0" />
---
> <img loading="lazy" title="$textutils.htmlEncode($priority.get().getNameTranslation(), false) - $textutils.htmlEncode($!priority.get().getDescTranslation(), false)" src="$iconurl.get()" alt="$textutils.htmlEncode($priority.get().getNameTranslation(), false)" width="16" height="16" align="absmiddle" border="0" /> $textutils.htmlEncode($!priority.get().nameTranslation, false)

This means that you need to go to line 6 and append:

$textutils.htmlEncode($!priority.get().nameTranslation, false)

After Jira is restarted, you will now have the priority name next to the icon:

Subscribe to receive our monthly
blog posts in your inbox

Latest Blogs
Financial Companies and the Cloud: 5 Trends

Financial Companies and the Cloud: 5 Trends

Spurred by the pandemic, financial companies have accelerated digital transformation, including cloud computing. Among many benefits, cloud technology helps financial companies meet the evolving needs of consumers and lower infrastructure costs. In the Atlassian world...

read more
Share This