It's all about the answers!

Ask a question

How to find a custom attribute under a project using RM API


Ankita M U (404) | asked Apr 11 '17, 10:26 a.m.

Hi ,

Is there a RM javascript API way to find if a custom attribute data type is available in a DNG project area..

thank you

Accepted answer


permanent link
Benjamin Silverman (4.1k69) | answered Apr 11 '17, 6:46 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Hi Ankita,

There is a Javascript API available which allows you to fetch attributes from an artifact.  I don't believe there is support for checking the entire project without first referencing an artifact to fetch attributes from.

Ankita M U selected this answer as the correct answer

Comments
Ankita M U commented Apr 12 '17, 2:23 a.m.

Thank you. Using RM API I have known how to fetch . Just wanted to know if it was possible without selecting an artifact to check if an attribute to be updated is available before updation code runs.


Benjamin Silverman commented Apr 12 '17, 8:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Not with any public API.  You could get the type system for the project as shown below and check for the attribute.  Just note this is not a public API and could change/require additional parameters at some point. 

https://clmserver/rm/types?resourceContext=https://clmserver/rm/process/project-areas/<project area UUID>&vvc.configuration=https://clmserver/rm/cm/stream/<stream UUID>&accept=*&private=true

Your answer


Register or to post your answer.