XPorter: Date.Time.Picker problem

Grape7 February 5, 2013

JIRA_side is OK.

  • jira.date.time.picker.java.format dd-MM-yyyy HH:mm
  • jira.date.time.picker.javascript.format %d-%m-%Y %H:%M
  • Date_Time: 06-02-2013 08:27

XPorter:

  • DATE: ${Date_Time}
  • DATE: 2013-02-06 08:27:00.0

Problem --> "2013-02-06" -part. It must be "06-02-2013".
I know that some kind of javascript could help me in this case but I can't do it. I'm not expert in Java. Searching from the net gives a lot of java_Date_Time -alternatives but still..
I'm still wondering this "javascript.format" %d-%m-%Y %H:%M -part:
Xporter change the order with no specific reason so is this a bug or feature ?

1 answer

1 accepted

0 votes
Answer accepted
Xpand IT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2013

Hi,

The Xporter for JIRA Plugin does not respects the date picker format, it just outputs the date in the Standard JIRA Format. If you want to use a custom format for the date we suggest you to use Javascript.

For the format that you want, you can use the following javascript (for the CreatedTime field):

%{var dateTime = '${CreatedTime}'.split(' '); var date = dateTime[0]; var time = dateTime[1]; var dateParts = date.split('-'); var timeParts = time.split(':'); dateParts[2] + '-' + dateParts[1] + '-' + dateParts[0] + ' ' + timeParts[0] + ':' + timeParts[1]}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events