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

DNG OSLC APIs to fetch Artifact attributes and links

Hi,

I'm having trouble accessing links associated with artifact (e.g. validatedBy) by using OSLC APIs.
The response payload received from simple query with where clause "dcterms:identifier" and wildcard character "" in select clause doesn't have any details related to links.
Does link relationship owner pay roles in it? May i know way to fetch all artifact withing given Module/collection along with associated links and attributes?
Note: I have tried REST APIs and its too time taking (5 mins/page of size 1000 ). I would less prefer that option.

Here is Query I tried to execute :
Query executed on  oslcResourceType: OSLCConstants.RM_REQUIREMENT_TYPE
queryParams.setWhere(    "nav:parent=<http://[server:port]/rm/folders/_h_55dXWyEei7eqqp227SoQ> and f1:Variant=<http://[server:port]/rm/types/_dFSccXmKEeiA-axCpwGpIw#5c36d80a-ab4f-48dd-8828-b46dd1b293e7> and f1:Status=<http://[server:port]/rm/types/_wlyx6GW5Eei7eqqp227SoQ#_wlyx62W5Eei7eqqp227SoQ>");
queryParams.setSelect("
");

Is it really possible to fetch artifact Links by using OSLC APIs?
Any suggestions/references/ examples are much appreciated ...

Thanks & Regards,
Jay

1 vote



2 answers

Permanent link
Hi

I'm not sure if you have already seen it, but there are some examples in this site https://jazz.net/library/article/1197

Hope it helps

1 vote

Comments
Thanks Cristobal! I already had through those examples. I couldn't find much help there.


Permanent link
I got subsequent query here :
May i know how to handle pagination with OSLC queries? 

0 votes

Comments

You could add the page size parameter and check the headers, there should be a link to the next page. 

See also this article 

1 vote

Thanks Cristobal! I was not setting header due to which next page query was failing all the time...

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,934
× 7,494
× 1,323
× 515
× 478

Question asked: Sep 10 '20, 2:46 p.m.

Question was seen: 3,449 times

Last updated: Sep 14 '20, 2:26 p.m.

Confirmation Cancel Confirm