It's all about the answers!

Ask a question

How to modify creation date of workitem -RTC 7.0.2


Namrata B (2115) | asked Oct 06 '22, 11:23 p.m.
Hi All,


We have migrated a lot of workitems from a project area to different project area in RTC .

But now all of the creation dates of the new WorkItems are from the day when the migration occurred. We would like to change these to be the date when the original work was created.

I tried using RTC import csv functionality by exporting a few workitems , modifing the creation dates and importing back. It shows an error "The workitem with ID 1234 cannot be saved because an attempt was made to change attribute '[Creation Date]' which are not modifiable".

Can anyone please help me how we can have it to be modified, or is there any other way ?

Thanks in advance

One answer



permanent link
Ralph Schoon (63.3k33646) | answered Oct 07 '22, 3:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The only chance you would have is to use the Java API and try to use the internal method: com.ibm.team.workitem.common.model.IWorkItem.setCreationDate(Timestamp)


I am not sure if that would work, I have not tried it yet. The work item command line https://github.com/jazz-community/work-item-command-line does not use that method and can not modify the creation date or creator. I will consider to have a look and see if it can support it. 

You can start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ if you want to understand how to use the Java APIs.


Comments
Ralph Schoon commented Oct 07 '22, 11:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

https://github.com/jazz-community/work-item-command-line now has the capability to set the creation date on initial creation of an item. Please note, if a work item has already been created and the creation date has been set, it is no longer possible to change the creation date, no matter what you do.


The main branch for WCL is now on 7.0.2SR1. It has the same code but I have not yet created a release. 

Your answer


Register or to post 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.