XPorter: Date.Time.Picker problem

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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

74 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you