Opened 16 years ago
Last modified 11 years ago
#8672 new enhancement
Filter ticket queries by user groups
| Reported by: | 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@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
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
[[TicketQuery(status=blocked,order=owner,owner=@software)]]
Attachments (1)
Change History (10)
by , 16 years ago
| Attachment: | ticket-query-group-filter.diff added |
|---|
comment:1 by , 16 years ago
| Keywords: | consider added |
|---|---|
| Milestone: | → 0.12 |
Thanks for the patch, we'll look into it.
comment:2 by , 16 years ago
As you noted though, the PermissionSystem should actually have better group support, something we might still do in time for 0.12.
comment:4 by , 16 years ago
| Milestone: | next-minor-0.12.x → next-major-0.1X |
|---|
I think this depends also on #5648, therefore next major milestone.
follow-up: 8 comment:7 by , 13 years ago
comment:8 by , 13 years ago
| Cc: | added |
|---|
comment:9 by , 11 years ago
| Reporter: | changed from to |
|---|



Preliminary version; only tested via the TicketQuery macro