Edgewall Software

Opened 9 years ago

Last modified 4 years ago

#8672 new enhancement

Filter ticket queries by user groups

Reported by: joshua.hoke@… Owned by:
Priority: normal Milestone: next-major-releases
Component: ticket system Version: none
Severity: normal Keywords: permissions reports queries tickets groups roles consider
Cc: yoann@…
Release Notes:
API Changes:


We had a need to filter the results of a TicketQuery by user groups (from the permission system) to keep query results from becoming overwhelming. The attached patch does this by expanding a 'username' like '@software' in the owner field of a query to all the users with that role. This is a very rough implementation for now (the group functionality should be provided by the permissions system and there should be a way to list groups on the Custom Query page) but I'm putting it up anyway in the hope that the idea is useful.

We use this like


Attachments (1)

ticket-query-group-filter.diff (2.4 KB ) - added by joshua.hoke@… 9 years ago.
Preliminary version; only tested via the TicketQuery macro

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by joshua.hoke@…

Preliminary version; only tested via the TicketQuery macro

comment:1 Changed 9 years ago by Christian Boos

Keywords: consider added
Milestone: 0.12

Thanks for the patch, we'll look into it.

comment:2 Changed 9 years ago by Christian Boos

As you noted though, the PermissionSystem should actually have better group support, something we might still do in time for 0.12.

comment:3 Changed 9 years ago by Remy Blank

Milestone: 0.12next-minor-0.12.x

Not a blocker for 0.12.

comment:4 Changed 9 years ago by Christian Boos

Milestone: next-minor-0.12.xnext-major-0.1X

I think this depends also on #5648, therefore next major milestone.

comment:5 Changed 8 years ago by Christian Boos

For next-major indeed.

comment:6 Changed 6 years ago by Jun Omae

#11134 was closed as duplicate.

comment:7 in reply to:  6 ; Changed 6 years ago by Chris.Nelson@…

Replying to jomae:

#11134 was closed as duplicate.

However, the patch attached to the other ticket applies to 1.0/1.1 (where query constraints have a different structure).

comment:8 in reply to:  7 Changed 6 years ago by yoann@…

Cc: yoann@… added

comment:9 Changed 4 years ago by Ryan J Ollos

Reporter: changed from joshua.hoke@… to joshua.hoke@…

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set.
The owner will be changed from (none) to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.