Hi All,
I am trying to update a Date/Time picker customfield, using JAVA.If I do code something as simple, as:
Object dateCustomField = issue.getCustomFieldValue((CustomField)ComponentAccessor.getCustomFieldManager().getCustomFieldObject(new Long(10391)));
updateValue(dateCustomField, issue, "2013-10-25 01:37:00.0");
An error is thrown in the logs:
java.lang.ClassCastException: java.sql.Timestamp cannot be cast to com.atlassian.jira.issue.fields.CustomField.
My question is: How can I update a Date/Time picker CF? I can not find any working documentation for JIRA 5.2.
I hope someone can help.
Cheers.