It's all about the answers!

Ask a question

All users can modify predefined queries.

Manuel Felipe Amaya (1321527) | asked Sep 01 '14, 6:35 p.m.
edited Sep 01 '14, 6:38 p.m.
A user can modifiy an existing predefined query if he just remove a filter, a field or part of the name. The permissions error message only appears when trying to add elements to the query or characters to the summary. Such permission message appears to everyone, even admins. On the contrary, every user with the permission "edit query" can edit predefined queries in the fashion described above.

Also, how can an admin remove permissions to edit some queries that are shared with all the project area members if not by making those queries predefined?


One answer

permanent link
Ralph Schoon (63.3k33646) | answered Sep 02 '14, 2:13 a.m.
The first part seems to be a statement. Any user can edit any query as far as I am aware. They can also run the edited questions. However, they can not save the query if the don't have the required permission, especially for shared queries. They can save the query as personal query if they have that permission.

There is no way to remove the ability to edit queries. RTC is designed to check if a save is permitted or not. Even if a query is predefined, it can still be modified - you can't just save the modification to the same query name if you don't have the permissions.

Manuel Felipe Amaya commented Sep 04 '14, 1:34 p.m.

My problem is that predefined queries (queries that belong to the group in "Proyect Configuration > Configuration Data > Work Items > Predefined Queries" in the proccess configuration tab of the RTC client for eclipse) can be modified by users even though it should advise that the user does not have permission to modify them.

The message, when the query belongs to the predefined queries groups is:
"Predefined Queries can only be modified in the process configuration".

It is true when adding elements to the query, but not when removing a filter or a field or part of the name.

Ralph Schoon commented Sep 05 '14, 3:04 a.m. | edited Sep 05 '14, 3:05 a.m.

Maybe I don't get it, but as mentioned above any user that can view a query and can modify it. They can play around with it and they can run it. The modification is temporary - in memory of the browser/client. RTC does not care or check permissions while you do that.

RTC checks permissions only when you do a save on the object. You can not save a predefined query as the same query. However, you can save a private copy.

As far as my tests went you can not save modifications to predefined queries at all.

You can

  1. provide more detailed steps to what you see, to allow us to follow your argument.
  2. File an enhancement request r a defect, If you disagree with how RTC handles things of think there is a bug

Manuel Felipe Amaya commented Sep 23 '14, 5:24 p.m. | edited Sep 23 '14, 5:30 p.m.

This is the route where the predefined queries are selected (Excuse me for the spanish client).
  Predefined queries section Spanish RTC
I can modify these queries filters, I'll show you one example with a query namend "A - PIP - Defectos QA IBMH":
Original Query

Changed name to "A - PIP - Defectos QA IBM". Error shown.
Normal error when modifying query.

Changed name to "A - PIP - Defects Changed Name QA IBMH" advise message not shown.
Predefined query permits changing the summary a lot

I hoped it was only for the summary field, but is every query parameter. Of course, there are some changes that does not permit, just I dont'n know for real what can o can't do.
This happens with a predefined query that I have selected as predefined in the section shown in then first image.

Ralph Schoon commented Sep 24 '14, 1:54 a.m.

Can you save the change?

Anyway, if you disagree with what happens, please file a defect or enhancement request.

Your answer

Register or 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.