Showing Extended Timestamp in the Created Column of the Issue Navigator
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The information in this page relates to customizations in Jira. Consequently, Atlassian Support cannot guarantee to provide any support for the steps described on this page as customizations are not covered under Atlassian Support Offerings. Please be aware that this material is provided for your information only and that you use it at your own risk.
Also, please be aware that customizations done by directly modifying files are not included in the upgrade process. These modifications will need to be reapplied manually on the upgraded instance.
This document describes how to modify the Created date field in the Issue Navigator to include the time. By default, the column view of the field hard-codes the rendering format to the locale specific "Day" format.
Solution
For JIRA 4.3.x and above:
Edit the file JIRA_INSTALL_DIR/atlassian-jira/WEB-INF/classes/templates/jira/issue/field/date-columnview.vm:
Change:
1
#if ($value) <span title="${title}"><time datetime="${iso8601}">${value}</time></span> #else #end
to:
1
#if ($value) <span title="${title}"><time datetime="${iso8601}">${title}</time></span> #else #end
Note that you are simply changing "${value}" to become "${title}"
JIRA 7.x and above appears to need a restart of JIRA after making this change in order for this to take effect.
Procedure for JIRA 4.2 and Before
Edit the file JIRA_INSTALL_DIR/atlassian-jira/WEB-INF/classes/templates/jira/issue/field/created-columnview.vm
to always use the extended formatDMYHMS rather than formatDMY.
For example, the following macro fragment should be changed:
Original - short data format
1
2
3
4
5
6
7
8
9
#if ($created)
#if (${displayParams.excel_view})
$outlookDateManager.getOutlookDate($authcontext.getLocale()).formatDMYHMS($created)
#else
$outlookDateManager.getOutlookDate($authcontext.getLocale()).formatDMY($created)
#end
#else
#end
Edited - full time-stamp
1
2
3
4
5
#if ($created)
$outlookDateManager.getOutlookDate($authcontext.getLocale()).formatDMYHMS($created)
#else
#end
Was this helpful?