How can i change workitem queries owner?
2 answers
Hi,
You can create a query to filter out the workitems based on the owner and then use "Edit Multiple Workitems" option to change the owner of the WIs.
I don't know any easy way to "transfer" the queries from your old user account to your current user account. Note that since your user ID has changed, effectively, the queries owned by the old user account are not "yours".
One way to do it is as follows.
1. Enable the old user account, even temporarily. Of course you have to be able to log in as the old user to continue.
2. For each query that the old user can see, share it with the current user (your new account).
3. After logging in as your current user, you can use the queries in the "Shared Queries" category, or copy them into your current "My Queries" folder.
Another possible way is to use API but it may not be worth the effort. I'm not familiar with the Java API. For REST/OSLC API, you can access /ccm/oslc/queries to get _all_ the queries, but it appears that the PUT operation is not implemented so you can't actually modify the queries (by changing their creators) using this method.
https://jazz.net/forum/questions/78006/querying-work-items-via-oslc
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2
One way to do it is as follows.
1. Enable the old user account, even temporarily. Of course you have to be able to log in as the old user to continue.
2. For each query that the old user can see, share it with the current user (your new account).
3. After logging in as your current user, you can use the queries in the "Shared Queries" category, or copy them into your current "My Queries" folder.
Another possible way is to use API but it may not be worth the effort. I'm not familiar with the Java API. For REST/OSLC API, you can access /ccm/oslc/queries to get _all_ the queries, but it appears that the PUT operation is not implemented so you can't actually modify the queries (by changing their creators) using this method.
https://jazz.net/forum/questions/78006/querying-work-items-via-oslc
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2