How to know if name (aka title) attribute value is synchronized with primary text attribute value
Hello,
|
Accepted answer
In the OSLC API you can look for this artifact attribute in the RDF resource:
Benjamin Röhl selected this answer as the correct answer
Comments
Benjamin Röhl
commented Nov 24 '17, 4:57 a.m.
Thanks for your quick reply.
Couldn't find the exact version when this feature (and property) was introduced, but I see it already present in DNG 4.0.7, so it started in one of the 4.0.x versions.
Benjamin Röhl
commented Dec 05 '17, 3:33 a.m.
I tried to find the property "hasServerGenerated" in the RDF representation of a requirement resource, but without success.
Benjamin Röhl
commented Jan 09 '18, 9:55 a.m.
It can be retrieved by not using OSLC API, instead using the private API.
Which version are you using? We are using DNG 6.0.4 and I was not able to get this data by using GET on e.g. https://<server>/rm/resources/MB_07c68fb661f54a7aa1ef7bd72461b3f3 with "Accept: application/rdf+xml" and "DoorsRP-Request-Type: private" headers
Christian Opitz
commented May 24 '18, 5:06 a.m.
It is working with 6.0.5iFix004
showing 5 of 6
show 1 more comments
|
2 other answers
The javascript API does not expose the information you need unfortunately (it gives you the Title as an attribute value without any indication of whether it is dynamically generated from the primary text or explicitly set in the artifact).
If you really cared, there is a pattern for having the javascript API call out to an external service that can make OSLC requests back to the RM server to discover the information you need.
It is documented here:
https://jazz.net/wiki/bin/view/Main/RMExtensionsUsingExternalWebService605 |
Thanks to @bbekker for OSLC API hint.
Comments I'm not really familiar with the RM Javascript extensions, but would think that with the RM.Data.getAttributes method you can access that property.
Christian Opitz
commented Apr 09 '18, 8:51 a.m.
I was not able to use the RM.Data.getAttributes method. Has this been proven to work? Using DNG 6.0.4 |
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.