Stored Queries - Get the sharing property
I need to get the seperation of the queries type: "My Query","Shared Query - Predefined" and "Shared Query - Individually Shared"
I'm using REST API. I know who to get the user queries by: https://localhost:9443/jazz/oslc/queries.xml?oslc_cm.query=rtc_cm:projectArea="_JvoYIK2vEd6wr5OgrMF4rQ" and dc:creator="{currentUser}" However, if the user is the same user that create the project than the shared queries olso be in the same creator name. Is there a way to get this seperation by REST API? |
3 answers
rronen178 wrote:
I need to get the seperation of the queries type: "My Currently, the sharing information is not available, unfortunately. The query parts of the OSLC API are also quite preliminary and not documented yet, IIRC. -- Regards, Patrick Jazz Work Item Team |
If/can anyone give an example of how to query for the ./internalAssociations/target@itemId value of a queryDescriptor from the oslc queries uri ?
As in the <query:QueryDescriptor> I can see effect of sharing a query with a projectArea as the addition of an <internalAssociation> element with its <target itemId> attribute set to the oid of the projectArea e.g: Unshared: ... <creator itemId="_KGRY4CFWEdq-WY5y7lROQw" stateId="_Z9AoECFWEdqvE47yzajdrw"/> </query:QueryDescriptor> Shared: ... <creator itemId="_KGRY4CFWEdq-WY5y7lROQw" stateId="_Z9AoECFWEdqvE47yzajdrw"/></query:QueryDescriptor> |
Has this been resolved in the past year? I need to filter out non-shared queries from the OSLC query list - either by adding a filter parameter to the URL or by checking the results for a flag.
|
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.