Type Projection for Hardware Assets against a CR
We use CAM extensively for our change requests. We organize our CAB meetings, by data centers. In the past we used a text match and a naming standard to group these into the proper locations.
This is troublesome when we move assets into new locations.
So I took a stab at doing a type projection. Please take a look; any feedback would be appreciated (good or bad).
Here is the section regarding the type projection:
<div> <TypeProjections></div><div> <TypeProjection ID="Custom.ChangeRequest.TypeProjetion.AffectedItems" Accessibility="Public" Type="CoreChange!System.WorkItem.ChangeRequest"></div><div> <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAffectedUser']$" Alias="AffectedUser" /></div><div> <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAssignedToUser']$" Alias="AssignedTo" /></div><div> <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAboutConfigItem' SeedRole='Source' TypeConstraint='CiresonAsset!Cireson.AssetManagement.HardwareAsset']$" Alias="AffectedHardwareAsset" ></div><div> <Component Path="$Target/Path[Relationship='CiresonAsset!Cireson.AssetManagement.HardwareAssetHasLocation']$" Alias="AssociatedLocation" /></div><div> <Component Path="$Context/Path[Relationship='CiresonAsset!Cireson.AssetManagement.HardwareAssetHasOrganization']$" Alias="AssociatedOrganization" /></div><div> </Component></div><div> </TypeProjection></div>
Thanks