Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes



3 answers

Permanent link
rronen178 wrote:
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

0 votes


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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Dec 01 '09, 3:40 a.m.

Question was seen: 5,722 times

Last updated: May 14 '14, 9:10 p.m.

Confirmation Cancel Confirm