post function to populate date time upon issue creation fails

i got a customfield (date time) wich needs to inherit issue creation time

so i added a postfunction and set it to get %%CURRENT_DATETIME%%

fails showing this error

com.atlassian.jira.issue.customfields.impl.FieldValidationException: Invalid date format. Please enter the date in the format "dd/MMM/yy h:mm a".

any idea? i thought that was working like mentioned here https://jsutil.atlassian.net/browse/JSUTIL-50

1 answer

1 accepted

as per the following issue the macro will fill the customfield with the system date and time so can you check the date format on jira

https://jsutil.atlassian.net/browse/JSUTIL-120

check this doc to set date and time format

https://confluence.atlassian.com/display/AOD/__date+and+time+formats

check the following doc it may help you

https://confluence.atlassian.com/display/JIRA050/Commonly+Asked+CSV+Questions+and+Known+Issues#CommonlyAskedCSVQuestionsandKnownIssues-Theimporterfailsatdatefields,why?

thanks for the hint but i guess the format is already set like it should be

still keeps tellin me this:

2013-12-09 10:06:06,865 http-bio-8080-exec-688 ERROR cfaysal 606x61766x1 xdc5kj 217.6.59.139,50.115.211.10 /secure/CreateIssueDetails.jspa [jsu.workflow.function.UpdateIssueCustomFieldPostFunction] Unable to update custom field customfield_13803 - Start Time in issue [GPROD-25].

com.atlassian.jira.issue.customfields.impl.FieldValidationException: Invalid date format. Please enter the date in the format "dd/MMM/yy h:mm a".

i suggest to submit support request with JSU plugin author with logs

https://jsutil.atlassian.net/secure/Dashboard.jspa

yeah will do. thanks mate

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

79 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