How to get DNG Primary Text content from the history:changeEntry using the REST API?
Hello
|
3 answers
You need two special HTTP request headers to retrieve it, given the fact that it's not a public API.
X-jazz-downstream-auth-client-level: 4.0The "Accept" header does not appear to matter as it always return XML/RDF format. Note that rather than using the "history=true" parameter to get the revisions, it may be easier to just use the artifact type "revisions" to do so. https://server:port/rm/publish/revisions?resourceURI=<UUID> Comments
Pierre Bentkowski
commented Jun 26 '15, 9:42 a.m.
Can you provide an example on how to set the Dynamic Data Source using those special HTTP request headers?
|
You can use dataSource/artifact/aggregatedContent/history/changeLog/changeEntry/oldValue when value type="string". For other cases you should use script as in the OOTB template audithistory.dta.
Comments
Pierre Bentkowski
commented Jun 26 '15, 9:37 a.m.
The OOTB template audithistory.dta creates a Hyperlink to the old value in DNG.
|
Pierre: I too am trying to return the primary text of the old value of an artifact as well. As an additional FYI...according to https://www.ibm.com/developerworks/community/forums/html/topic?id=ae7b9aa2-0a79-4d2b-ba81-847e07f9fed7#repliesPg=0 "We cannot get the old value since DNG does not support the filter by revision." Regarding your baseline comparisons...Question: Do you provide the users with a list of baselines to choose from when generating the book report? I'd like to see how you did this if that is the case? I know currently there is no data source available for baselines and the information can not be reported using RPE, but just curious if you found another way other than knowing the snapshot id of the baseline as discussed in http://rpeactual.com/2014/08/06/producing-documents-from-dng-module-baselines/ Comments
Pierre Bentkowski
commented Jul 20 '15, 5:44 p.m.
Hello
|
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.