Get all folders/modules in a component of a project area using REST/OSLC for analytics
I use the following hierarchy:
Project Areas [i got them: https://server:port/rm/process/project-areas or https://server:port/rm/oslc_rm/catalog]
Components [i also got these https://server:port/rm/rm-projects/{Project ID}/components]
Folders / Modules [still did not get them]
Views
Artifacts [need this data]
I am on ELM v7.
Please help. Thank you. |
2 answers
Ian Barnard (2.3k●7●14)
| answered Oct 09, 7:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Hi
In each project/configuration there's an OSLC Query Capability which allows you to discover the hierarchy of folders.
You can use OSLC Query or Reportable REST APIs to discover modules and artifacts.
Overview of all ELM APIs is here https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding
HTH
Ian
Comments
Geethika Tiramdas
commented Oct 22, 5:08 a.m.
I found your GitHub repository for API: https://github.com/IBM/ELM-Python-Client.git
this helps a lot! Thank you!
|
i use a 2 stage approach to getting artifacts from modules. i define a component view that lists the modules to be processed and use REST API to get this view. then i have the module ids (e.g. MD_xxx) and i construct URLs to get a view from each of those modules and process those results.
this code creates the first url to get a component view ('prj_view'), which is a list of modules:
url = dng_publish(entry['server'], 'modules')
then i construct urls per module like this:
url = dng_publish(module['server'], 'views') |
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.
Comments
can you confirm your components link? i'm trying it and versions of it, but can't seem to make it work... :(
For example: https://example.com/rm/process/rm-projects/_xxx/components
it is https://example.com/rm/rm-projects/_XXX/components
there is no 'process' here. can you try this?
I think it maybe because I use a custom version of IBM tool (as a serviced product), not the open source one. :(