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

More than one parent for labresourceattribute?

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

0 votes



4 answers

Permanent link
Sorry, the code was stripped, please refer to XML Source section on the page with URL above.

0 votes


Permanent link
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

0 votes


Permanent link
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.

0 votes


Permanent link
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.

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: Jun 09 '10, 11:47 a.m.

Question was seen: 6,375 times

Last updated: Jun 09 '10, 11:47 a.m.

Confirmation Cancel Confirm