- Type
- Approved by user
- Assignees
- Author
- Cadence
- Closed at
- Confidential
- Created at
- Deployed at
- Draft
- Due date
- Environment
- Group
- Health status
- ID
- Iteration
- Labels
- Merged at
- Merged by user
- Milestone
- Project
- Reviewers
- State
- Updated at
- Weight
GLQL fields
-
Introduced in GitLab 17.4 with a flag named
glql_integration
. Disabled by default. - Enabled on GitLab.com in GitLab 17.4 for a subset of groups and projects.
-
iteration
andcadence
fields introduced in GitLab 17.6.
In a GitLab Query Language (GLQL) query, a field is the leftmost part
of the expression.
In queries, fields follow the syntax of <field> <operator> <value> and ...
,
In a GLQL view, fields are included as a comma-separated list of tokens in
the fields:
option.
This page lists fields available to use as filters when querying issues or work items.
Type
Field name: type
Allowed operators: =
, in
Allowed value types:
-
Enum
(one ofIssue
,Incident
,TestCase
,Requirement
,Task
,Ticket
,Objective
,KeyResult
,Epic
, orMergeRequest
) -
List
(containing one or moreenum
values above)
Allowed in columns of a GLQL view: Only for issue and work item types.
Additional details:
- If omitted when used inside a GLQL view, all issue and work item types are included by default.
- Work item types (like
Issue
,Task
, orObjective
) cannot be used together withMergeRequest
types. - The type field isn’t allowed in columns of a GLQL view for
MergeRequest
types.
Examples:
-
List issues of type
Incident
:type = incident
-
List issues of types
Issue
orTask
:type in (Issue, Task)
-
List all merge requests assigned to the current user:
```plaintext type = MergeRequest and assignee = currentUser() ``
Approved by user
Field name: approver
Allowed operators: =
, !=
Allowed value types:
String
-
User
(for example,@username
) -
List
(containingString
orUser
values) -
Nullable
(either ofnull
,none
, orany
)
Allowed in columns of a GLQL view: Yes
Supported for object types: MergeRequest
Examples:
-
List all merge requests approved by current user and
@johndoe
type = MergeRequest and approver = (currentUser(), @johndoe)
Assignees
Field name: assignee
Allowed operators: =
, in
, !=
Allowed value types:
String
-
User
(for example,@username
) -
List
(containingString
orUser
values) -
Nullable
(either ofnull
,none
, orany
)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequest
Examples:
-
List all issues where assignee is
@johndoe
:assignee = @johndoe
-
List all issues where assignees are both
@johndoe
and@janedoe
:assignee = (@johndoe, @janedoe)
-
List all issues where assignees are either of
@johndoe
or@janedoe
:assignee in (@johndoe, @janedoe)
-
List all issues where assignee is neither of
@johndoe
or@janedoe
:assignee != (@johndoe, @janedoe)
-
List all merge requests where assignee is
@johndoe
:type = MergeRequest and assignee = @johndoe
Additional details:
-
List
values and thein
operator are not supported forMergeRequest
types.
Author
Field name: author
Allowed operators: =
, in
, !=
Allowed value types:
String
-
User
(for example,@username
) -
List
(containingString
orUser
values) -
Nullable
(either ofnull
,none
, orany
)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequest
Additional details:
- Because an issue can have only one author, the
=
operator cannot be used withList
type for theauthor
field. -
List
values and thein
operator are not supported forMergeRequest
types.
Examples:
-
List all issues where author is
@johndoe
:author = @johndoe
-
List all issues where author is either of
@johndoe
or@janedoe
:author in (@johndoe, @janedoe)
-
List all issues where author is neither of
@johndoe
or@janedoe
:author != (@johndoe, @janedoe)
-
List all merge requests where author is
@johndoe
:type = MergeRequest and author = @johndoe
Cadence
Field name: cadence
Allowed operators: =
, in
, !=
Allowed value types:
-
Number
(only positive integers) -
List
(containingNumber
values) -
Nullable
(either ofnone
, orany
)
Allowed in columns of a GLQL view: No
Supported for object types:
Issue
- Work item types like
Task
orObjective
Additional details:
- Because an issue can have only one iteration, the
=
operator cannot be used withList
type for thecadence
field.
Examples:
-
List all issues with iteration that are a part of cadence ID
123456
:cadences = 123456
-
List all issues with iterations that are a part of any cadences
123
or456
:cadence in (123, 456)
Closed at
Field name: closed
Allowed operators: =
, >
, <
Allowed value types:
-
AbsoluteDate
(in the formatYYYY-MM-DD
) -
RelativeDate
(in the format<sign><digit><unit>
, where sign is+
,-
, or omitted, digit is an integer, andunit
is one ofd
(days),w
(weeks),m
(months) ory
(years))
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
Additional details:
- For the
=
operator, the time range is considered from 00:00 to 23:59 in the user’s time zone.
Examples:
-
List all issues closed since yesterday:
closed > -1d
-
List all issues closed today:
closed = today()
-
List all issues closed in the month of February 2023:
closed > 2023-02-01 and closed < 2023-02-28
Confidential
Field name: confidential
Allowed operators: =
, !=
Allowed value types:
-
Boolean
(either oftrue
orfalse
)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
Additional details:
- Confidential issues queried using GLQL are only visible to people who have permission to view them.
Examples:
-
List all confidential issues:
confidential = true
-
List all issues that are not confidential:
confidential = false
Created at
Field name: created
Allowed operators: =
, >
, <
Allowed value types:
-
AbsoluteDate
(in the formatYYYY-MM-DD
) -
RelativeDate
(in the format<sign><digit><unit>
, where sign is+
,-
, or omitted, digit is an integer, andunit
is one ofd
(days),w
(weeks),m
(months) ory
(years))
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequests
Additional details:
- For the
=
operator, the time range is considered from 00:00 to 23:59 in the user’s time zone.
Examples:
-
List all issues that were created in the last week:
created > -1w
-
List all issues created today:
created = today()
-
List all issues created in the month of January 2025 that are still open:
created > 2025-01-01 and created < 2025-01-31 and state = opened
Deployed at
Field name: deployed
Allowed operators: =
, >
, <
Allowed value types:
-
AbsoluteDate
(in the formatYYYY-MM-DD
) -
RelativeDate
(in the format<sign><digit><unit>
, where sign is+
,-
, or omitted, digit is an integer, andunit
is one ofd
(days),w
(weeks),m
(months) ory
(years))
Allowed in columns of a GLQL view: Yes
Supported for object types: MergeRequest
Additional details:
- For the
=
operator, the time range is considered from 00:00 to 23:59 in the user’s time zone.
Examples:
-
List all merge requests that have been deployed in the past week:
type = MergeRequest and deployed > -1w
-
List all merge requests that have been deployed in the month of January 2025:
type = MergeRequest and deployed > 2025-01-01 and deployed < 2025-01-31
Draft
Field name: draft
Allowed operators: =
, !=
Allowed value types:
-
Boolean
(either oftrue
orfalse
)
Allowed in columns of a GLQL view: Yes
Supported for object types: MergeRequest
Examples:
-
List all draft merge requests:
type = MergeRequest and draft = true
-
List all merge requests that are not in draft state:
type = MergeRequest and draft = false
Due date
Field name: due
Allowed operators: =
, >
, <
Allowed value types:
-
AbsoluteDate
(in the formatYYYY-MM-DD
) -
RelativeDate
(in the format<sign><digit><unit>
, where sign is+
,-
, or omitted, digit is an integer, andunit
is one ofd
(days),w
(weeks),m
(months) ory
(years))
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
Additional details:
- For the
=
operator, the time range is considered from 00:00 to 23:59 in the user’s time zone.
Examples:
-
List all issues due in a week:
due < 1w
-
List all issues that were overdue as of January 1, 2025:
due < 2025-01-01
-
List all issues that are due today (but not due yesterday or tomorrow):
due = today()
-
List all issues that have been overdue in the last 1 month:
due > -1m and due < today()
Environment
Field name: environment
Allowed operators: =
Allowed value types: String
Allowed in columns of a GLQL view: No
Supported for object types: MergeRequest
Examples:
-
List all merge requests that have been deployed to environment
production
:environment = "production"
Group
Field name: group
Allowed operators: =
Allowed value types: String
Allowed in columns of a GLQL view: No
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequest
Additional details:
- Only one group can be queried at a time.
- The
group
cannot be used together with theproject
field. - If omitted when using inside a GLQL view in a group object (like an epic),
group
is assumed to be the current group. - Using the
group
field queries all objects in that group, all its subgroups, and child projects.
Examples:
-
List all issues in the
gitlab-org
group and any of its subgroups:group = "gitlab-org"
-
List all Tasks in the
gitlab-org
group and any of its subgroups:group = "gitlab-org" and type = Task
Health status
Field name: health
Allowed operators: =
Allowed value types:
-
StringEnum
(one of"needs attention"
,"at risk"
or"on track"
) -
Nullable
(either ofnull
,none
, orany
)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
Examples:
-
List all issues that don’t have a health status set:
health = any
-
List all issues where the health status is “needs attention”:
health = "needs attention"
ID
Field name: id
Allowed operators: =
, in
Allowed value types:
-
Number
(only positive integers) -
List
(containingNumber
values)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequest
Examples:
-
List issue with ID
123
:id = 123
-
List issues with IDs
1
,2
, or3
:id in (1, 2, 3)
-
List all merge requests with IDs
1
,2
, or3
:type = MergeRequest and id in (1, 2, 3)
Iteration
Field name: iteration
Allowed operators: =
, in
, !=
Allowed value types:
-
Number
(only positive integers) -
Iteration
(for example,*iteration:123456
) -
List
(containingNumber
orIteration
values) -
Enum
(onlycurrent
is supported) -
Nullable
(either ofnone
, orany
)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
Additional details:
- Because an issue can have only one iteration, the
=
operator cannot be used withList
type for theiteration
field. - The
in
operator is not supported forMergeRequest
types.
Examples:
-
List all issues with iteration ID
123456
(using a number in the query):iteration = 123456
-
List all issues that are a part of iterations
123
or456
(using numbers):iteration in (123, 456)
-
List all issues with iteration ID
123456
(using iteration syntax):iteration = *iteration:123456
-
List all issues that are a part of iterations
123
or456
(using iteration syntax):iteration in (*iteration:123, *iteration:456)
-
List all issues in the current iteration
iteration = current
Labels
Field name: label
Allowed operators: =
, in
, !=
Allowed value types:
String
-
Label
(for example,~bug
,~"team::planning"
) -
List
(containingString
orLabel
values) -
Nullable
(either ofnone
, orany
)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequest
Additional details:
- Scoped labels, or labels containing spaces must be wrapped in quotes.
- The
in
operator is not supported forMergeRequest
types.
Examples:
-
List all issues with label
~bug
:label = ~bug
-
List all issues not having label
~"workflow::in progress"
:label != ~"workflow::in progress"
-
List all issues with labels
~bug
and~"team::planning"
:label = (~bug, ~"team::planning")
-
List all issues with labels
~bug
or~feature
:label in (~bug, ~feature)
-
List all issues where the labels include neither of
~bug
or~feature
:label != (~bug, ~feature)
-
List all issues where none of the scoped labels apply, with scope
workflow::
:label != ~"workflow::*"
-
List all merge requests with labels
~bug
and~"team::planning"
type = MergeRequest and label = (~bug, ~"team::planning")
Merged at
Field name: merged
Allowed operators: =
, >
, <
Allowed value types:
-
AbsoluteDate
(in the formatYYYY-MM-DD
) -
RelativeDate
(in the format<sign><digit><unit>
, where sign is+
,-
, or omitted, digit is an integer, andunit
is one ofd
(days),w
(weeks),m
(months) ory
(years))
Allowed in columns of a GLQL view: Yes
Supported for object types: MergeRequest
Additional details:
- For the
=
operator, the time range is considered from 00:00 to 23:59 in the user’s time zone.
Examples:
-
List all merge requests that have been merged in the last 6 months:
type = MergeRequest and merged > -6m
-
List all merge requests that have been merged in the month of January 2025:
type = MergeRequest and merged > 2025-01-01 and merged < 2025-01-31
Merged by user
Field name: merger
Allowed operators: =
Allowed value types:
String
-
User
(for example,@username
) -
List
(containingString
orUser
values) -
Nullable
(either ofnull
,none
, orany
)
Allowed in columns of a GLQL view: No
Supported for object types: MergeRequest
Examples:
-
List all merge requests merged by the current user:
type = MergeRequest and merger = currentUser()
Milestone
Field name: milestone
Allowed operators: =
, in
, !=
Allowed value types:
String
-
Milestone
(for example,%Backlog
,%"Awaiting Further Demand"
) -
List
(containingString
orMilestone
values) -
Nullable
(either ofnone
, orany
)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequest
Additional details:
- Milestones containing spaces must be wrapped in quotes (
"
). - Because an issue can have only one milestone, the
=
operator cannot be used withList
type for themilestone
field. - The
in
operator is not supported forMergeRequest
types.
Examples:
-
List all issues with milestone
%Backlog
:milestone = %Backlog
-
List all issues with milestones
%17.7
or%17.8
:milestone in (%17.7, %17.8)
-
List all issues in an upcoming milestone:
milestone = upcoming
-
List all issues in a current milestone:
milestone = started
-
List all issues where the milestone is neither of
%17.7
or%17.8
:milestone != (%17.7, %17.8)
Project
Field name: project
Allowed operators: =
Allowed value types: String
Allowed in columns of a GLQL view: No
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequest
Additional details:
- Only one project can be queried at a time.
- The
project
field cannot be used together with thegroup
field. - If omitted when using inside a GLQL view,
project
is assumed to be the current project.
Examples:
-
List all issues and work items in the
gitlab-org/gitlab
project:project = "gitlab-org/gitlab"
Reviewers
Field name: reviewer
Allowed operators: =
, !=
Allowed value types:
String
-
User
(for example,@username
) -
List
(containingString
orUser
values) -
Nullable
(either ofnull
,none
, orany
)
Allowed in columns of a GLQL view: Yes
Supported for object types: MergeRequest
Examples:
-
List all merge requests reviewed by current user and
@johndoe
type = MergeRequest and reviwer = (currentUser(), @johndoe)
State
Field name: state
Allowed operators: =
Allowed in columns of a GLQL view: Yes
Allowed value types:
-
Enum
- For issue and work item types, one of
opened
,closed
, orall
- For
MergeRequest
types, one ofopened
,closed
,merged
, orall
- For issue and work item types, one of
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequest
Additional details:
- The
state
field does not support the!=
operator.
Examples:
-
List all closed issues:
state = closed
-
List all open issues:
state = opened
-
List all issues regardless of their state (also the default):
state = all
-
List all merged merge requests:
type = MergeRequest and state = merged
Updated at
Field name: updated
Allowed operators: =
, >
, <
Allowed value types:
-
AbsoluteDate
(in the formatYYYY-MM-DD
) -
RelativeDate
(in the format<sign><digit><unit>
, where sign is+
,-
, or omitted, digit is an integer, andunit
is one ofd
(days),w
(weeks),m
(months) ory
(years))
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
MergeRequests
Additional details:
- For the
=
operator, the time range is considered from 00:00 to 23:59 in the user’s time zone.
Examples:
-
List all issues that haven’t been edited in the last 1 month:
updated < -1m
-
List all issues that were edited today:
updated = today()
-
List all open MRs that haven’t been edited in the last 1 week:
type = MergeRequest and state = opened and updated < -1w
Weight
Field name: weight
Allowed operators: =
, !=
Allowed value types:
-
Number
(only positive integers)
Allowed in columns of a GLQL view: Yes
Supported for object types:
Issue
- Work item types like
Task
orObjective
Additional details:
- Comparison operators
<
and>
cannot be used.
Examples:
-
List all issues with weight 5:
weight = 5
-
List all issues with weight not 5:
weight != 5