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

Migration of work items

I'm trying to migrate some of work items from one RTC server to another. Is it possible to import work items and to set new id to be equal to old id? It's very important that ids are equal. Also I have comments that have links to other work items that needs to work after the migration is completed.


Thanks for your help.

0 votes


Accepted answer

Permanent link
Hi Tomislav

Does the details in this thread help for your query here?

https://jazz.net/forum/questions/90104/moving-work-items-across-repository


Tomislav Klisanic selected this answer as the correct answer

0 votes


2 other answers

Permanent link
Hi Tomislav..,

Theoretically, it is not possible for a developer to determine ID of the workitem.
Consider a scenario where you want to migrate workitems with ids 1- 100 from a source server to destination(assumping it is new server).
1. Create a query which lists all the work items and sort it based on ids before saving it.
2. Export it to a csv file...,
Now while importing workitems from csv, the new server will assign same ids (i.e 1-100, since it is new) for the workitems imported provided no other users are creating workitems on current server simultaneously else where.
Constraints:
If it is not new server(i.e workitems has already been  created), then you'll have no control over the ids of workitems that you are going import.

P.S. In import feature, client will traverse workitems present in csv file from top to bottom and assign a number which is next to id of most recently workitem.

Hope this helps in your qwest.

0 votes


Permanent link
As Ajay mentions, there is no reliable way to set the ID of a newly created workitem. 

as for links, etc..  when we moved projects across servers with our custom built utilities, we had to fixup all the links, comments, etc to get them working again.. 

0 votes

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
× 369

Question asked: Jun 02 '14, 4:32 a.m.

Question was seen: 6,212 times

Last updated: Jun 02 '14, 6:44 a.m.

Confirmation Cancel Confirm