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
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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

759 views 2 19
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