How to query project's global configurations assembling a local configuration of specific project-area?
Hello all,
as title says, I would like to query all global configurations assembling a local configuration of a specific project-area.
I tried to accomplish this with the Global Configuration Management REST API, which is found at https://<server>/gc/doc/scenarios.
This is the GET request's URL:
https://jazz:9443/gc/oslc-query/configurations/_6Hi2kBXDEearEczym9ABjA?oslc.where=oslc_config:contribution{oslc_config:configuration{process:projectArea=<https://jazz:9443/rm/process/project-areas/_4baTYD8rEeSZxPPkdZ-lVg>}}
This is the GET request's response:
CRJGC0654E The HTTP request oslc.where parameter value "oslc_config:contribution{oslc_config:configuration{process:projectArea=<https://jazz:9443/rm/process/project-areas/_4baTYD8rEeSZxPPkdZ-lVg>}}" is not valid.
(I reduced the OSLC error resource to it's message for brevity)
Is there any alternative solution accomplishing that?
One answer
Hi Benjamin,
You cannot query GCM for that. GCM only stores references (URIs of) to local configurations (such as those from DOORS Next), and does not store properties of those local configurations (such as project area). So there is no data available in GCM for a GCM query. You're trying to perform a cross-domain query.
You cannot query GCM for that. GCM only stores references (URIs of) to local configurations (such as those from DOORS Next), and does not store properties of those local configurations (such as project area). So there is no data available in GCM for a GCM query. You're trying to perform a cross-domain query.
Unfortunately, you cannot query project area as a property of configurations in Report Builder since the resource shape for oslc_config:Configuration, as defined by the OSLC Configuration Management specification, does not have a project area property. Project areas are not defined by OSLC specifications. Instead, you will have to write your own SPARQL and execute directly in LQE.
Best regards,
David.