How do I change the creation date of a workitem?
![]()
Hello,
How can I change the creation date of an existing work item?
We've migrated a lot of 'work' from a previous system in to RTC but all of the creation dates of the new WorkItems are from the day when the auto migration occurred. We would like to change these to be the date when the original work was created but I can't see a way to change things.
I can query the work item using the java api and then call setCreationDate on the IWorkItem object but it doesn't seem to change the date and it's marked as 'Internal' in the api docs. Should this work? is there a way change the creation date?
Thanks
David
|
2 answers
![]()
Ralph Schoon (61.8k●3●36●43)
| answered Oct 23 '12, 3:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi David,
I believe you can do that only using an API. You can use the plain java Client Libraries to do that. Using the Plain Java Client Libraries you could use:
workItem.setCreationDate(timestamp);
I should probably create a better entry, but some hints on how to modify a work item can be found in this post: http://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/ . You can do the modification in the operation
execute
instead of uploading the attachment. For example
@Override
|