Bridge To JIRA - configure datetime format

Configuring of a particular format for the datetime displayed by the Bridge to JIRA plugin is done using a classic WordPress filter.

The easiest is to have a parallel plugin of a few lines of code that will just add and implement the filter.

The filter name is btj_filter_datetime_format and it receives as input a PHP date. The implemented filter should transform this date into a printable string.

Here's a sample of what this filter may be:

add_filter('btj_filter_datetime_format', 'cbtj_datetime_format');

function cbtj_datetime_format($date) {
return date('Y/d/m H:i', $date);


The the following shortcode will display the datetime of the created JIRA issues in the desired format:

[btj-table fields="key,assignee,created" id="demonstrate-datetime-format"]project = DBTJ[/btj-table]

DBTJ-14 Jane Doe2021/18/05 09:11
DBTJ-13 John Doe2021/19/04 14:28
DBTJ-12 Jane Doe2021/16/03 19:16
DBTJ-11 Jane Doe2021/02/01 14:19
DBTJ-10 John Doe2021/02/01 09:41
DBTJ-9 John Doe2021/02/01 09:28
DBTJ-8 John Doe2021/02/01 09:20
DBTJ-7 John Doe2020/29/12 19:04
DBTJ-6 John Doe2020/29/12 17:25
DBTJ-5 John Doe2020/29/12 17:24
DBTJ-4 John Doe2020/29/12 17:22
DBTJ-3 John Doe2020/29/12 17:20
DBTJ-2 Jane Doe2020/29/12 17:20
DBTJ-1 Jane Doe2020/29/12 17:09

Leave a comment

Your email address will not be published. Required fields are marked *