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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,739 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot