It's all about the answers!

Ask a question

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


Gordon Flood (25147) | asked Jan 15 '13, 3:06 p.m.

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

Accepted answer


permanent link
Rich Kulp (3.6k38) | answered Jan 15 '13, 4:03 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

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.