Change Data Type of Existing Artefact Attribute
My customer has created an Artifact Attribute called Priority as a Data Type of String. They now wish to change the data type from String to a Custom Attribute Data Type (Priority) that will enforce Must, Should, Could, Won't.
Is there a way to change the existing Artifact attribute from String to point to the new custom Data Type? If not, what does IBM recommend?
Accepted answer
Hi Dan,
As I'm sure you've seen, the system does not allow you to change the data type of an attribute. I know of no way to convert an attribute to a new data type while retaining existing values. CSV does not support round trip updates. ReqIF does, but it will create types that do not exist rather than merging in to existing (which is by design). I imagine this could only be achieved by:
As I'm sure you've seen, the system does not allow you to change the data type of an attribute. I know of no way to convert an attribute to a new data type while retaining existing values. CSV does not support round trip updates. ReqIF does, but it will create types that do not exist rather than merging in to existing (which is by design). I imagine this could only be achieved by:
-
Adding the new Priority list attribute (you can have duplicates) and associating it with your type(s)
- Using the OSLC API to copy the values from the String type to the List type
- Disassociating the original "Priority" attribute from the type once all values are copied