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

Removing custom attribute impacts on unresolved work items

I just had a quick question to clarify something for me.

I know that custom attributes aren't ever really removed from the database based on these links:
https://jazz.net/forums/viewtopic.php?t=9626

https://www-304.ibm.com/support/docview.wss?uid=swg21453761

What I am wondering is there any impact to work items which aren't yet completed which were using that field? Do we have to wait until those are completed?

We have updated our editors to no longer include the custom attribute but I wasn't sure if I needed to wait to remove it from the work item type.

Thanks.

0 votes



2 answers

Permanent link
I just had a quick question to clarify something for me.

I know that custom attributes aren't ever really removed from the database based on these links:
https://jazz.net/forums/viewtopic.php?t=9626

https://www-304.ibm.com/support/docview.wss?uid=swg21453761

What I am wondering is there any impact to work items which aren't yet completed which were using that field? Do we have to wait until those are completed?

We have updated our editors to no longer include the custom attribute but I wasn't sure if I needed to wait to remove it from the work item type.

Thanks.


Until you remove them from the Work Item Type, these attributes are still used and still created on all new work items where they apply. By taking them out of the Editor Presentation but leaving them on the Work Item Type, you've just made them uneditable (so they will get their default value, if any, and remain that way).

Removing them from the Work Item Type should not create any issues. If you have involved these attributes in any (pre)conditions or operational behaviors, you'll want to undo those (but even that shouldn't cause an issue as the code should be smart enough to not apply these when the involved attributes don't exist on the item). You might be able to create trouble here if the removed attribute was required or used in a custom script without care to its possible removal.

I did a quick test with a simple string attribute added then removed and I was able to process the various work items through their phases without issues.

0 votes


Permanent link
Thanks Millard. I figured it should be fairly safe to do but this clears it up for me.

I just had a quick question to clarify something for me.

I know that custom attributes aren't ever really removed from the database based on these links:
https://jazz.net/forums/viewtopic.php?t=9626

https://www-304.ibm.com/support/docview.wss?uid=swg21453761

What I am wondering is there any impact to work items which aren't yet completed which were using that field? Do we have to wait until those are completed?

We have updated our editors to no longer include the custom attribute but I wasn't sure if I needed to wait to remove it from the work item type.

Thanks.


Until you remove them from the Work Item Type, these attributes are still used and still created on all new work items where they apply. By taking them out of the Editor Presentation but leaving them on the Work Item Type, you've just made them uneditable (so they will get their default value, if any, and remain that way).

Removing them from the Work Item Type should not create any issues. If you have involved these attributes in any (pre)conditions or operational behaviors, you'll want to undo those (but even that shouldn't cause an issue as the code should be smart enough to not apply these when the involved attributes don't exist on the item). You might be able to create trouble here if the removed attribute was required or used in a custom script without care to its possible removal.

I did a quick test with a simple string attribute added then removed and I was able to process the various work items through their phases without issues.

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

Question asked: Mar 13 '12, 11:23 a.m.

Question was seen: 3,301 times

Last updated: Mar 13 '12, 11:23 a.m.

Confirmation Cancel Confirm