How to unarchive deleted Custom Attributes?
![](http://jazz.net/_images/myphoto/f2b3ab67ea13a2023007287542b52abe.jpg)
How do I unarchive a deleted custom attribute? I know the attribute still exists in the database because it comes up as "archived" when I create queries.
I was able to make the attribute reappear as active in editor presentations by adding it to the attribute definitions in the XML (see below), but it has no selections - the type is basically being ignored, I assume because somewhere the attribute is still being handled as archived. Queries also still show the attribute as archived. What else do I need to do to fully unarchive this attribute? I have done "synchronize attributes". That makes the attribute appear in the editor, but without the enumerations.
Note that I have associated the attribute with an enumeration that is active rather than the original also-archived enumeration. The case and spelling are correct and the same Type works if I associate it with a new attribute. I need to maintain the old attribute name for external syncing.
2.0.0.2 ifix5
I was able to make the attribute reappear as active in editor presentations by adding it to the attribute definitions in the XML (see below), but it has no selections - the type is basically being ignored, I assume because somewhere the attribute is still being handled as archived. Queries also still show the attribute as archived. What else do I need to do to fully unarchive this attribute? I have done "synchronize attributes". That makes the attribute appear in the editor, but without the enumerations.
Note that I have associated the attribute with an enumeration that is active rather than the original also-archived enumeration. The case and spelling are correct and the same Type works if I associate it with a new attribute. I need to maintain the old attribute name for external syncing.
2.0.0.2 ifix5
<customAttributes category="com.ibm.team.workitem.workItemType">
<customAttribute id="commitment" name="Commitment" type="Phase"/>
</customAttributes>
<attributeDefinitions>
<attributeDefinition id="commitment" name="Commitment" type="Phase"/>
</attributeDefinitions>
3 answers
![](http://jazz.net/_images/myphoto/f2b3ab67ea13a2023007287542b52abe.jpg)
I haven't tried this recently. But if I remember correctly, in the eclipse client if you click the "Add" button for a new attribute, then in the bottom of the screen select "Reuse Existing Attribute" you should be able to find the archived attribute.
Edit: I've only used RTC 3.0+, not sure if this is different in 2.0.
Let us know if this worked.
Edit: I've only used RTC 3.0+, not sure if this is different in 2.0.
Let us know if this worked.