It's all about the answers!

Ask a question

More than one parent for labresourceattribute?


Ivo Modrinić (1111) | asked Jun 09 '10, 11:47 a.m.
Hi everyone,

I need to set more than one parent for a certain lab resource attribute (you can edit them by going Admin->System Properties->Lab Resource Properties).

For instance, I have "IHS Server" attribute. I want it to be a child of "WAS" AND of example "HTTP Server".

Apparently RQM's UI is not designed to let the user do that. So I checked if I can use API for creating this resource "manually".

API docs (http://jazz.net/projects/rational-quality-manager/api-doc-2.0/api-files/schemas/qm_xsd/elements/labresourceattribute.html) say that a single resource can have more than on attribute:
<xs>


I've prepared a proper XML with two <parent> tags, and imported it into my RQM, but the import script didn't do anything with the first parent, it set only the second one for the new resource.

Then I wrote 2 XMLs with different parents, but one resource ID, and this time it did nothing after attempt to import second XML (so - apparently the answer for this post is: it's not possible).

Maybe, in spite of all there is another way to do that?

Thanks in advance,
Ivo Modrinic

4 answers



permanent link
Ivo Modrinić (1111) | answered Jun 09 '10, 11:49 a.m.
Sorry, the code was stripped, please refer to XML Source section on the page with URL above.

permanent link
David Richards (31) | answered Jun 09 '10, 4:47 p.m.
The way to do this via the UI is to create a new root type. Root types are the catalog types in the far left of the lab resource properties editor. After you have created your root type, create a new "Type" attribute on the types you want to reference it by selecting one of them and pushing the edit button (it looks like a pencil), and then pushing the green plus button to add a new attribute. Select "Type" as the data type and then select your new root type ("IHS Server") as the value.

This is the same way that multiple out of the box types can have the same "Version" type.

More information on the lab resource properties editor can be found here http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/topic/com.ibm.rational.test.lm.doc/topics/t_cust_labres_prop.html

permanent link
Ivo Modrinić (1111) | answered Jun 10 '10, 4:05 a.m.
Thanks for the reply.

I did steps you described. Now the problem is that somehow RQM does not save edited attributes. After I added the attribute with Type e.g. "testRootType1", closed the edit popup by pressing OK and opened it again, it changes the value to the one that occurs first on the root types list.
I saved changes though, re-loged in, then the attribute was saved by with empty value.

permanent link
David Richards (31) | answered Jun 10 '10, 10:35 a.m.
Thanks for the reply.

I did steps you described. Now the problem is that somehow RQM does not save edited attributes. After I added the attribute with Type e.g. "testRootType1", closed the edit popup by pressing OK and opened it again, it changes the value to the one that occurs first on the root types list.
I saved changes though, re-loged in, then the attribute was saved by with empty value.


I was able to reproduce what you described, however you should note that the attribute saves with the values you selected. So, if you go in and create a Test Environment (or other artifact that uses the catalog types) you should be able to create one with your new attribute as you intended it to be.

I've opened https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/34043 and https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/34044 to deal with the two defects you found.

Your answer


Register or 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.