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 (63.5k●3●36●46)
| 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
|
One option to do so would be to make the creation date attribute as editable from the process configuration source. (as it cannnot be done from the editor presentations directly.) The next step would be to synchronize all workitems so that the change is updated. Then one could go ahead and change the creation date of the synchronized workitems.
Hope it helps... Comments
praveen patidar
commented Dec 02 '12, 11:53 p.m.
Just FYI...
|
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.