Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to modify creation date of workitem -RTC 7.0.2

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

0 votes



One answer

Permanent link

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.

0 votes

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,117

Question asked: Oct 06 '22, 11:23 p.m.

Question was seen: 878 times

Last updated: Oct 07 '22, 11:37 a.m.

Confirmation Cancel Confirm