How can I add constraint of relation type for asset type by
![]()
I want to add constraint of relation type for asset type by RAM API, but I cannot find that operations neither by java client nor web service API. I can create relation type, can create asset type, but no idea to connect them together. Have any idea? Thanks.
|
2 answers
![]() I want to add constraint of relation type for asset type by RAM API, but I cannot find that operations neither by java client nor web service API. I can create relation type, can create asset type, but no idea to connect them together. Have any idea? Thanks. Unfortunately we have not had the time to fully flush out all the admin functions into API. We do not have a simple way to accomplish adding a relationship constraint to an Asset Type. However the constraints are stored in the Asset Type configuration. This can be set via the API. I would recommend setting up your asset type in the UI just as you would like it. Than writing a test case that gets the Asset Type from the session and prints it out.
For example I have an Asset Type that requires a relationship of type "documentation" to an Asset of type Specification.
Once you have the XML that describes the AssetType constraints you would like you can set this value in the configuration when programmatic creating a new type...
There is an enhancement to better expose this functionality in the API... https://jazz.net/jazz02/web/projects/Rational%20Asset%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=25210 It is currently not in plan for 7.5 |
|
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.