Issue Custom Query: Default Query
|Assignee:||Go MAEDA||% Done:|
It would be nice to be able to create a default custom query, so when I get to issue list of a project, I don't need to select my preferable custom query from the list.
Default issue query (#7360).
Patch by Katsuya HIDAKA (the author of https://github.com/hidakatsuya/redmine_default_custom_query), Takenori TAKAKI, Olivier Chabert, and Jens Krämer.
#5 Updated by Vincent Frédérick over 10 years ago
+1 Indeed would be nice for a user to set is default query for a given project. So a user could create a query to see only his tickets or the ticket related to a version he is currently working on. In fact he can already do all of this. Only thing missing is to automatically have that list query displayed when he clicks on "Issues".
#18 Updated by Daniel Felix over 7 years ago
Yes this could be quite useful. I have some projects which needs a special filter or a special column display (due to some custom fields) to get displayed correct. If there would be a default view, for each user in each project or a default project with the new role wide filters, this would be great.
#35 Updated by Takenori TAKAKI over 5 years ago
- File default_custom_query_trunk_r15273.patch added
#36 Updated by Takenori TAKAKI over 5 years ago
- File default_custom_query_trunk_r15303.patch added
I have arranged my patch ( default_custom_query_trunk_r15273.patch ) for berow:
- add 'default_query_id' to "Project(projects) "
- change position of the 'default-query drop-down', to 'Information Tab'
- remove permission & module "Manage default query"
- improve code a little bit, and add tests
- Compatible with latest trunk (r15303)
#37 Updated by Go MAEDA over 5 years ago
- Target version set to 3.3.0
default_custom_query_trunk_r15303.patch works fine and passed all test.
This is a great feature. Many users hope for this feature (this issue have got 24 "+1"s and the original plugin redmine_default_custom_query written by Katsuya HIDAKA have got 25 stars on GitHub).
It would be great if we could see this feature in the next release. Now I am setting target version to 3.3.0.
#39 Updated by Katsuya HIDAKA about 5 years ago
+1 I'm creator of Default Custom Query plugin. I think that this patch (based on Default Custom Query plugin and written by Takenori Takaki) is one of the best way for providing customization of default issues for each project. I hope that this feature is merged!!
#40 Updated by Jean-Philippe Lang about 5 years ago
- Target version changed from 3.3.0 to 3.4.0
As requested above, we should provide different level of default query: per project (as implemented in the patch) but also by user. We should also be able to provide default queries for the global issue list.
#75 Updated by Go MAEDA about 1 year ago
Marcel Müller wrote:
I really would like to see this integrated in redmine by default. It was more or less accepted in https://www.redmine.org/issues/7360#note-40 - any idea why its now on unplanned backlog?
The current patch was rejected by Jean-Philippe Lang in #7360#note-40 because of the lack of per-user default query and a default query for the cross-project issues list.
To push this issue forward, someone needs to implement at least those features.
#76 Updated by Olivier Chabert 12 months ago
- File default_custom_trunk_r19977.patch added
You can find an updated version of patch for this feature.
This patch work with last commit r19977 on trunk branch.
this patch provide also different level of default query (as requested on #7360#note-40): * per project (as implemented in the original patch) * per user * and in the global redmine settings for the global issue list
thank you for your reviews on this patch ;)
#80 Updated by Jens Krämer about 1 month ago
We're planning to introduce this feature in Planio , so I took the liberty to look over Olivier's patch (thank you for that!) and, among other things, rebased it on current master.
Further, I added some tests and German translations, fixed any rubocop warnings, implemented copying of the default query assignment when copying a project including queries, and changed the naming of preferences / fields to be consistently
- File 7360.patch added
Marius BALTEANU wrote:
Only one thing, is not better to show the Default query field inside Issues list defaults section in admin? The settings are quite related:
The setting "Default query" is exactly "Issue list defaults"!
I have updated the patch as such and changed the date of the migration file to the current date.
Although an earlier version of the patch contributed by Katsuya HIDAKA and Takenori TAKAKI was rejected by JPL 5 years ago (#7360#note-40), I got approval from Jean-Philippe Lang to commit the latest patch the day before yesterday. I would like to commit the patch within the next few days.
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the patch. Thank you to all those who contributed to this great feature, and special thanks to Katsuya HIDAKA, the author of Redmine Default Custom Query.
Now you can set the default issue query per app/project/user. The project-level default query always overrides the app-level one, and the user-level one always overrides the project-level and app-level ones.
You can configure default queries in the following places:
- App-level: Administration > Issue tracking > Default Query
- Project-level: Settings (project) > Issue tracking > Default issue query
- User-level: My account > Default issue query