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

Accepted Answer
0 votes

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,438 views 2 7
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