-
Hi everyone, my team is creating a tool which allows the user to select the DNG URL then view all the available projects in the URL as well as the components inside of the selected project then the available configurations from the selected component. Is there a command that returns all the available DNG projects, components, and local configurations inside of a Jazz URL? I'm able to view for example all the available components if I enter an incorrect component name in the logs but an error is also thrown along with this for the oslcquery command. Is there a command which returns this information without throwing an error? For example with obtaining all the projects: Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi - yes it's possible extract this type of info, but you'll have to modify the code because reporting this is not what oslcquery was designed to do. Suggest you start with something simpler than oslcquery, perhaps reqif_io.py - but oslcquery.py has the basics of what you want amongst a heap of other code. You'll have to find all the projects, then for each one load the components and configurations. You don't want to be reading the typesystem because that takes a long time and you don't need it. You'll create an rmapp to represent the rm application, then rmapp.list_projects() is the code to show the projects. When you select a project then proj.list_components() lists the components. Then when you've selected a component comp them comp.list_configs() goes through the configurations. Combine those and that's your report :-) Good luck! |
Beta Was this translation helpful? Give feedback.
Hi - yes it's possible extract this type of info, but you'll have to modify the code because reporting this is not what oslcquery was designed to do. Suggest you start with something simpler than oslcquery, perhaps reqif_io.py - but oslcquery.py has the basics of what you want amongst a heap of other code. You'll have to find all the projects, then for each one load the components and configurations. You don't want to be reading the typesystem because that takes a long time and you don't need it.
You'll create an rmapp to represent the rm application, then rmapp.list_projects() is the code to show the projects. When you select a project then proj.list_components() lists the components. Th…