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

How to query DNG artifact base on its type?

Hi, how to query DNG artifact base on its type? I'm using DNG 5.0.1, while retrieving the instance shape of the artifact that I'm interested in, I don't see the attribute for type there, how can I do query to query this type of artifact?
I've read the article at https://jazz.net/library/article/1197, and it guide to use "rm:ofType" --> this can do the trick, but the problem is my project has only 3 artifacts and the search take ~5-10 mins to get the result.
What could be the solution for this?

0 votes


Accepted answer

Permanent link
The artifact "type" is determined by its "instanceShape". And the name of the type is defined by <dc:title> in the instanceShape representation. If you would like to get it in one go, you can try the reportable REST API rather than OSLC. The URL looks like this
https://clm/rm/publish/text?resourceURI=_UUID_
When doing an OSLC search, I believe it queries against the whole data set (the entire RM system), not just the project in your mind. It does not sound right for it to take so long to return values, but without proper investigation, it is almost impossible to propose any solutions for performance issues.
Tuan Nguyen Minh selected this answer as the correct answer

0 votes


One other answer

Permanent link
Using the rm:ofType should work fine. and it is not normal that it takes that long.

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,938
× 516
× 201

Question asked: Apr 17 '15, 10:22 a.m.

Question was seen: 4,937 times

Last updated: Apr 19 '15, 10:25 p.m.

Confirmation Cancel Confirm