DNG : Given a GC URI and Module URI, get all the Artifacts details using API
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
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
|
Ian Barnard (2.3k●7●14)
| 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
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.