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 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 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
CVE-2021-44228 Analysis

CVE-2021-44228 Analysis

This is a living document (Last Updated 09:55 ET Dec 11th 21), and we're working to update it as we find more information. If you have feedback, please feel free to email boris@atlasauthority.com Official Responses Official response from Atlassian for Customers:...

read more
Share This