glab(1)
π NAME π
glab-work-items-list β the glow-up command for listing work items in a project or group π
heads up bestie: this one is (EXPERIMENTAL) π§ͺβ¨
(it's a glab(1) situation, so you already know the vibe β GitLab CLI, but make it cute)
β¨ SYNOPSIS β¨
glab work-items list [flags]
π¦ DESCRIPTION π¦
Okay so, literally: list work items in a project or group. That's the whole assignment. π
It's lowkey smart about it too β it automatically detects scope from repository context. So if you're sitting in a repo, it already knows. Want group-level work items instead? Slap on the --group flag. Want a totally different project? Use -R and pick your fave. Easy. π
πΈ Date filters, explained (this is the good part)
Date filters accept three flavors, and yes you can mix and match:
- An absolute date (
YYYY-MM-DD). A date without a time is read in the system time zone of the GitLab server. - An RFC 3339 timestamp. Use one with an offset, such as
2026-01-01T00:00:00+02:00, for an exact point in time. - A relative date: a number followed by
d(days),w(weeks),m(months), ory(years). Negative numbers are in the past, positive numbers are in the future, and0dis today. Relative dates resolve to the start of the day in the time zone of the GitLab instance. They stay relative, so the same command keeps returning the last 7 days, for example.
β οΈ Version check bestie!! Date filters require GitLab 19.4 or later. Relative dates require GitLab 19.6 or later. Don't come crying to me if you're on 19.3 π
π EXPERIMENTAL ALERT β This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/
π₯ OPTIONS π₯
--after=""β Fetch items after this cursor (for pagination) βοΈ--closed-after=β Show work items closed on or after this. Implies--state closedunless--stateis set. UseYYYY-MM-DD, an RFC 3339 timestamp, or a relative date such as-7d,2w,-1m, or1y.--closed-before=β Show work items closed before this. Implies--state closedunless--stateis set. UseYYYY-MM-DD, an RFC 3339 timestamp, or a relative date such as-7d,2w,-1m, or1y.--created-after=β Show work items created on or after this. UseYYYY-MM-DD, an RFC 3339 timestamp, or a relative date such as-7d,2w,-1m, or1y.--created-before=β Show work items created before this. UseYYYY-MM-DD, an RFC 3339 timestamp, or a relative date such as-7d,2w,-1m, or1y.--due-after=β Show work items due on or after this. UseYYYY-MM-DD, an RFC 3339 timestamp, or a relative date such as-7d,2w,-1m, or1y.--due-before=β Show work items due before this. UseYYYY-MM-DD, an RFC 3339 timestamp, or a relative date such as-7d,2w,-1m, or1y.-g,--group=""β List work items for a group or subgroup. π―ββοΈ--jq=""β Filter JSON output with ajqexpression. π§-F,--output="text"β Format output as:text,json.-P,--per-page=20β Number of items to list per page (max 100) π-R,--repo=""β Select another repository. You can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.--state="opened"β Filter by state:opened,closed,all.-t,--type=[]β Filter by work item type (epic,issue,task, etc.) Multiple types can be comma-separated or specified by repeating the flag. π--updated-after=β Show work items updated on or after this. UseYYYY-MM-DD, an RFC 3339 timestamp, or a relative date such as-7d,2w,-1m, or1y.--updated-before=β Show work items updated before this. UseYYYY-MM-DD, an RFC 3339 timestamp, or a relative date such as-7d,2w,-1m, or1y.
π§ OPTIONS INHERITED FROM PARENT COMMANDS π§
-h,--help[=false]β Show help for this command. (the classic, the icon, the moment π«Ά)
π EXAMPLE π
Screenshot this, bestie β these are all verbatim, no cap:
# List first 20 open work items in current project
glab work-items list
# List open epics in a group (default: 20 items)
glab work-items list --type epic -g gitlab-org
# List first 50 open work items
glab work-items list --per-page 50 -g gitlab-org
# Get next page using cursor from previous output
glab work-items list --after "eyJpZCI6OTk5OX0" -g gitlab-org
# List closed work items
glab work-items list --state closed -g gitlab-org
# List all work items regardless of state
glab work-items list --state all -g gitlab-org
# JSON output with pagination metadata
glab work-items list --output json -g gitlab-org
# List issues in a specific project
glab work-items list --type issue -R gitlab-org/cli
# List work items created in the last 7 days
glab work-items list --created-after -7d -g gitlab-org
# List open work items due in the next 2 weeks
glab work-items list --due-after 0d --due-before 2w -g gitlab-org
# List work items closed in a fixed date range
glab work-items list --state closed --closed-after 2026-01-01 --closed-before 2026-04-01 -g gitlab-org
β SEE ALSO β
glab-work-items(1)β the parent, the main character π
okay that's the whole page, mwah π this one was auto generated by spf13/cobra, dated Nov 2026 β she's a robot but she's slaying fr fr πβ¨
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms