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

This widget could not be displayed.

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 Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 4 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

26 views 0 7
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