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

How to fetch Validated by attribute of an artifact in Doors Ng using IBM DOORS Next Reportable REST API

Hi,


I am currently using the DOORS Next Reportable REST API https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI below to fetch module data, but the in this module link present in the validated by attributes are only appearing. They should be displayed in all module links as well. 

uri= website+"/rm/publish/resources?moduleURI="+URI 

HttpUtils.sendPutForSecureDocument(serverputloginpasswordhttpclientJTS_Server);
 
Here validation has been done before GET 

ResponseParser rp = buildGetRequest(uri)

.addHeader("Accept", "application/rdf+xml")

.addHeader("DoorsRP-Request-Type", "public 2.0")

.addHeader("Configuration-Context", webSite + "/rm/cm/"+locationContext+"/" + streamID)

.getResponseParser();



For understanding, I have taken validated by attribute for one artifact and it's having 4 links inside of it.
Validated by
        |

in this module links
link1
link2

in all module links
link3
link4
--------------------
             |
Current Result after using GET REST API  
            |
 validated by ->link1,link2 which is not fetching remaining link3 and link 4

Required: validated by ->link1,link2,link3,link4



                         




Kindly assist me with resolving this issue

1

0 votes

Comments

What do you mean by "in all module links"? Where are the links from and where exactly do they go to - a binding or a core artifact?



2 answers

Permanent link

Hi Barnard,


I have attached a sample screenshot of a single validated artifact for your reference. Currently, when I use the GET REST API, it only lists link types under "In this module only." However, I am trying to fetch link types that are listed "In all modules" as well.


0 votes


Permanent link

Shan,


You have to change the URI from the module URI artifact to the BASE uri artifact.

So your module URI artifact may look like this:
BI_LWpYcGT2Ee28EbVmwNaQNw

It should look like:

TX_LXcCoGT2Ee28EbVmwNaQNw

In some versions of DNG, it may be CA_LXcCoGT ...

In any case, you're querying the module artifact and not the base artifact. Hope this helps.

Kevin Murphy
IBM Champion

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
× 7,585
× 6,159
× 1,723
× 1,415

Question asked: Jul 25, 1:16 a.m.

Question was seen: 708 times

Last updated: Aug 14, 1:52 p.m.

Confirmation Cancel Confirm