Hi,
I tried to set the current date & time value to a date picker custom field named "Committed Date" as follow:
issue.setCustomFieldValue(cfm.getCustomFieldObjectByName("Committed Date"),new Date());
but it is throwing an exception
[INFO] [talledLocalContainer] com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:CustomFieldValue][id,10406][datevalue,Tue Feb 05 14:56:02 IST 2013][issue,10402][parentkey,null][customfield,10002] (Java type java.util.Date not currently supported. Sorry.)
please provide the format to set the date picker custom field .
The format used in our jira version is dd/MMM/yy h:mm a.
Community moderators have prevented the ability to post new answers.
From memory, I think you need to give it a "Timestamp" object rather than a Date. (i.e. replace "new Date()" with "new Timestamp()" )
Both Date and Date/Time fields in Jira are stored the same way in Jira - with a time element (it's set to 0:00:00 for fields that are just Date only)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.