post function to populate date time upon issue creation fails

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2013

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

0 votes
Answer accepted
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2013

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?

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2013

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

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2013

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".

RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2013

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

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

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2013

yeah will do. thanks mate

Suggest an answer

Log in or Sign up to answer