How to fix workItems with creationDate main field set to none, but with a correct creationDate in the History?
![]()
Right now I'm having trouble with some work items. The Creation Date field that appears in the main part of the work item is displaying a "None" value, meanwhile inside the History the first log shows the Creation Date in which the work item was created.
|
2 answers
![]()
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date(); IWorkItem wi=client.findWorkItemById(workItemId, IWorkItem.FULL_PROFILE, monitor); IWorkItemWorkingCopyManager manager= client.getWorkItemWorkingCopyManager(); manager.connect(handle, IWorkItem.FULL_PROFILE, monitor); wc = manager.getWorkingCopy(handle); wi.setCreationDate(new Timestamp(date.getTime())); wc.save(null); This should update the workitem's creation date as system date. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.