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

RAM Reporting URL fullAsset path only returns first value of multi-valued attribute... bug?

Is this a bug, or is this the result of leaving a parameter out of the reporting URL?

When using the fullAsset reporting path, against an asset that has a multi-valued attribute, the xml returned  contains only one value of the multi-valued attribute. The GUI and the .ras file have all values of the multi-valued attribute.

Illustration:

 "Project" asset type is defined with attribute "SMEs" which is type User with "multi-valued" checked

RAM GUI:

An instance of the Project asset type, myProject asset, has three values for SMEs: Curly, Larry, Moe

XML returned by reporting/fullAsset path:

contains only Curly:

<assetAttributes>
<name>SMEs</name>
<type>user</type>
<singleSetting>false</singleSetting>
<values>
<values>Curly</values>
</values>
</assetAttributes>

To recreate:

  • Define an attribute called "Business Subject Matter Experts", of type "user" and check "multi-valued".
  • Define an asset type called "Project" and add the attribute above to its attribute constraints.
  • Submit an asset of type "Project" adding three Business Subject Matter Experts
  • Copy the GUID for the new asset from your browser URL and paste it into the reporting URL below (replacing "host")
  • Examine the XML returned, you will find only one <assetAttributes> element with name   "Business Subject Matter Experts" which will contain only one (inner) <values> element (and not three).

.ras file content

<freeFormValue value="Moe">
   <freeFormDescriptor href="http://host/ram/classif/assetTypesSchema.xmi#SMEs"/>
</freeFormValue>
<freeFormValue value="Larry">
   <freeFormDescriptor href="http://host/ram/classif/assetTypesSchema.xmi#SMEs"/>
</freeFormValue>
<freeFormValue value="Curly">
   <freeFormDescriptor href="http://host/ram/classif/assetTypesSchema.xmi#SMEs"/>
</freeFormValue>

Version Info:

Version:  7.5.1.1  Build:  RAM7511-I20120320_1046

0 votes


Accepted answer

Permanent link
This is a defect due to history. This piece of code was written a long time ago, before we had unrestricted multivalued attributes. At the time they were only single valued. Please open a defect on jazz.net against RAM so that we can get it fixed.

Thanks.
Gordon Flood selected this answer as the correct answer

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
× 481

Question asked: Jan 15 '13, 3:06 p.m.

Question was seen: 4,712 times

Last updated: Jan 17 '13, 2:32 p.m.

Confirmation Cancel Confirm