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
Accepted answer
Thanks.
Comments
Thanks! Opened defect 79054 here: https://jazz.net/jazz02/web/projects/Rational%20Asset%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=79054