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?
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:
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
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?
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:
...
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>
<internalAssociations>
<internalId>_UYIS0MkoEeKT85K26hz9_Q</internalId></internalAssociations>
<role xsi:nil="true"/>
<target itemId="_xil9QHQ2EeKXEft1yU9dAA" stateId="_TkBsxcexEeK5yueg5Gj2lg" xsi:type="process:ProjectAreaHandle"/>