Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How get text content of artifact from history in RDNG with OSLC/REST

Hello!
Is any way to get text data for Rational DOORs Next Generation text artifact with OSLC or Reportable API?
I was trying to get history of an artifact with:
https://<server>:9443/rm/publish/resources?resourceURI=_HlSQwb_UEeegWoVqUPnDvQ&history=true
            
It gives a history of entries with such data as:
<history:oldValue type="url">
https://<server>:9443/rm/resources/_ItKe0b_UEeegWoVqUPnDvQ?revision=_IteA0b_UEeegWoVqUPnDvQ
</history:oldValue>
<history:value type="url">
https://<server>:9443/rm/resources/_JtU7Ub_UEeegWoVqUPnDvQ?revision=_JthIkb_UEeegWoVqUPnDvQ
</history:value>
But I can not get text content with these values from an external program.
If I do a request for revisions:
https://<server>:9443/rm/resources/_Esg9wb_dEeegWoVqUPnDvQ?revisions
            
So I can not find text data there.
May be somebody realized the same ever. If it's available, can somebody give a little advice how to do it correctly? If not possible, so could you confirm it? 
My question is made after investigating of other questions:
But I can not find there clear answer to my question!
Thank you very much in advance!

0 votes



2 answers

Permanent link

Hi Dmitry,

I think your best bet is using the "history" parameter as described in one of the other posts you mentioned.  This ends up using the reportable REST API, for example:

https://<server>:<port>/rm/publish/resources?resourceURI=_UCe30MABEeeW25QDs6YRwQ&history=true

0 votes

Comments

Hi Benjamin,

Thank you for quick answer! But the problem is that I applied this parameter, and I can not extract text data from the response's data. The response returns such attributes as:

<history:oldValue type="url">
<history:value type="url">

But I don't know how extract their values with a typical GET request. I can only input them in address field of a browser and open the related web page but not more.


Permanent link
I realize this is a 2 year old thread, but I am encountering the same issue as Dmitry.  I want to retrieve the oldValue and value fields.  However, the provided URLs (when retrieved) are a bunch of Javascript and not the content I'm after.  It looks like it's meant for a web user interface and not to be machine readable.

Is there a solution to this or are we stuck, unable to get the history values?

I'm on Doors NG 6.0.6.1 and I have written a Python program that retrieves all of my system requirements, and one analysis I want to do is to detect when a user changes a particular field of a requirement.  I can tell when the Primary Text was altered, but I can't get the actual text that changed via my Python code.  I got so close to the solution but now I'm stuck!


0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 515
× 139
× 67

Question asked: Nov 02 '17, 10:40 a.m.

Question was seen: 4,157 times

Last updated: Nov 20 '19, 6:42 p.m.

Confirmation Cancel Confirm