Skip to content

Queries

The queries command (alias q) lists saved queries (custom filters) defined in the Redmine web UI and lets you reuse them from the CLI.

Terminal window
redmine queries list [flags]
FlagDescription
--limitMaximum number of results (0 for all)
--offsetResult offset for pagination
-o, --outputOutput format: table, json, csv

Each row reports the query ID, name, visibility (public or private), and scope (global or project <id>).

Terminal window
redmine queries list
redmine queries list -o json
Terminal window
redmine queries get <id-or-name> [flags]

Aliases: show, view. Accepts a numeric ID or query name.

FlagDescription
--projectProject identifier or numeric ID - disambiguates per-project queries that share a name with a global query
-o, --outputOutput format

Once you know the query ID (or name), run it through the issues endpoint:

Terminal window
# By ID - no extra round trip
redmine issues list --query-id 12
# By name - the CLI resolves the ID first
redmine issues list --query "My open issues"
# Combine with --project to disambiguate per-project queries
redmine issues list --project myproject --query "Sprint backlog"

The saved query’s filters apply server-side. You can still pair --query-id with --sort, --limit, --offset, and --include to shape the result set.