Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Java type java.util.Date not currently supported. Sorry.

Bharadwaj Jannu
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.
February 28, 2013

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.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2013

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)

Sachin Dhamale May 13, 2015

Thanks Nic Its working

TAGS
AUG Leaders

Atlassian Community Events