It's all about the answers!

Ask a question

DNG : Given a GC URI and Module URI, get all the Artifacts details using API


Shwetha G (266710) | asked Nov 04, 6:34 a.m.

Hi Team,


I have a usecase wherein given the GC Configuration URI and Module detail, get all the artifacts details using the OSLC/Reportable APIs.

Thanks in advance.

2 answers



permanent link
Antje Rößle-Tuchel (59415) | answered Nov 04, 7:10 a.m.

You can try this:

//create new moduleRef for getting all artifacts located in a module
let componentUriToCreate = projectUri.split("/rm/process")[0] + "/rm/rm-projects/" + projectUri.split("project-areas/")[1] + "/components/" + componentUri.split("component/")[1]
let moduleRef = new RM.ArtifactRef(moduleUri, componentUriToCreate, undefined, 'http://www.ibm.com/xmlns/rdm/types/ArtifactFormats#Module')

// get the type and identifier of all artifacts located in the module
RM.Data.getContentsAttributes(moduleRef,[RM.Data.Attributes.ARTIFACT_TYPE, RM.Data.Attributes.IDENTIFIER], function(result){
            console.log (result.data)})

I do not know, if you need to tell the attributes as parameters in the function: RM.Data.getContentsAttributes

I think you can get more information out of the documentation: https://jazz.net/wiki/bin/view/Main/RMExtensionsAPI702#GetContentsAttributes


permanent link
Ian Barnard (2.3k714) | answered Nov 06, 3:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Information about all the public ELM APIs is here https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding


Your answer


Register or 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.