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

Can you update the work item attribute "id"

I have a customer with approx. 20 very similar project areas in one repository. The Defect work item contains a number of custom attributes.  The attribute name is the same across the project areas but the customAttribue id's are different.  This is causing problems moving work items across project areas.  Can the customAttribute be updated in the process XML?
Thanks!

0 votes


Accepted answer

Permanent link
Thinking about it, I would probably left the old attribute, created a new attribute with the correct ID, fixed the editor presentations , renamed the display name of the old one to zz_ignore. the I would have written a simple tool that goes through all work items and copies the data over. No corruption of data could happen.
Neil Plantan selected this answer as the correct answer

0 votes

Comments

Thanks Ralph, went this route to be safe


4 other answers

Permanent link
You should be able to modify the display name, but you will not be able to modify the ID

0 votes

Comments

Ralph, what I would like to do is modify the id so I can move work items across projects, the display names are already the same. The GUI does not allow this but the XML does. If I change it will it do you know if it will have any adverse affects?


Permanent link
Neil,

I don't think I understand what, why and how you want to work.

The ID is actually used as index in the database and I think you can only have one work item with one ID. Using the API you can force an ID, but if it is already taken you will get an exception. I can only discourage this. It would be better tho use a link between the relates work items to make navigation easier.

0 votes


Permanent link
Hi Ralph, the customer needs to be able to move and copy workitems across projects.  Today, they get about a dozen mapping errors when they try to copy or move a work item to another project.  The attribute exists in both project areas but the attribute id's are slightly different - he curse of multiple administrators.  I was able to change the **<customAttribute id="** in the process configuration source.  it does not look like it had any adverse affect on existing defects using this attribute.(still testing)  i am now able to move workitems across projects and no longer get the "Attribute not Found" error.

0 votes


Permanent link
Hi Neil,

now I get what you mean with the ID. Honestly I haven't tried what you just did. I am not sure if it would have ill effects. The reason is that the Attribute ID is probably used for many DB operations, so I am not sure if you would end up with data in the DB that is related to an ID that is no longer there. The WorkitemCustomization Wiki topic talks about changing the ID of EnumerationLiterals and it mentions only to do that before the enumeration is first used. I would at least do some thorough testing (including reastarting the server and the clients to erase caches) to make sure you are not getting into trouble.

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
× 6,121
× 369

Question asked: Aug 24 '12, 12:50 p.m.

Question was seen: 5,764 times

Last updated: Oct 05 '12, 3:38 p.m.

Confirmation Cancel Confirm