Use this API to manage issues, their links to related issues, and issue statistics. You can:

  • Create, update, and delete issues.
  • Manage issue metadata, like assignees, labels, milestones, and time tracking.
  • Cross-reference issues and merge requests.
  • Track issue movement and promotion between projects and epics.
  • Retrieve statistics about issues.

If a user is not a member of a private project, a GET request on that project results in a 404 status code.

The references.relative attribute is relative to the group or project of the issue being requested. When an issue is fetched from its project, the relative format is the same as the short format. When requested across groups or projects, it’s expected to be the same as the full format.

List all issues for the currently authenticated user

GET /api/v4/issues

Lists all issues accessible by the currently authenticated user. By default, returns only issues created by the current user. To list all issues, use parameter scope=all.

Parameters

NameTypeDescription
with_labels_details
Query
BooleanIf true, the response returns more details for each label in the labels field: name, color, description, description_html, text_color
Default: false
state
Query
StringFilter issues by state
Allowed values: opened, closed, all
Default: all
closed_by_id
Query
IntegerReturn issues closed by the user with the given ID
order_by
Query
StringSort results by the specified field
Allowed values: created_at, due_date, label_priority, milestone_due, popularity, priority, relative_position, title, updated_at, blocking_issues
Default: created_at
sort
Query
StringSort results in ascending or descending order
Allowed values: asc, desc
Default: desc
due_date
Query
StringReturn issues that have no due date, are overdue, or whose due date is this week, this month, or between two weeks ago and next month
Allowed values: 0, any, today, tomorrow, overdue, week, month, next_month_and_previous_two_weeks, ``
issue_type
Query
StringThe type of the issue. Accepts: issue, incident, test_case, requirement, task, ticket
Allowed values: issue, incident, test_case, requirement, task, ticket
labels
Query
Array of stringsComma-separated list of label names. None means no labels are assigned. Any means at least one label is assigned. No+Label (deprecated) means no labels are assigned. Set to an empty string to unassign all labels. If a label does not already exist, this creates a new project label and assigns it to the issue. Predefined names are case-insensitive
milestone
Query
StringMilestone title. None lists all issues with no milestone. Any lists all issues that have an assigned milestone. Support for None and Any is planned for removal. Use the milestone_id attribute instead. Mutually exclusive with milestone_id
milestone_id
Query
StringReturn issues assigned to milestones with a given timebox value. None lists all issues with no milestone. Any lists all issues that have an assigned milestone. Upcoming lists all issues assigned to milestones due in the future. Started lists all issues assigned to open, started milestones. The logic for Upcoming and Started differs from the logic used in the GraphQL API. Mutually exclusive with milestone
Allowed values: Any, None, Upcoming, Started
iids
Query
Array of integersReturn only the issues having the given iid
search
Query
StringSearch issues against their title and description
in
Query
StringModify the scope of the search attribute to title, description, or title,description. If omitted, defaults to title,description
author_id
Query
IntegerReturn issues created by the given user ID. Combine with scope=all or scope=assigned_to_me. Mutually exclusive with author_username
author_username
Query
StringReturn issues created by the given username. Mutually exclusive with author_id
assignee_id
Query
Integer or stringReturn issues assigned to the given user id. None returns unassigned issues and Any returns issues with an assignee. Mutually exclusive with assignee_username
assignee_username
Query
Array of stringsReturn issues assigned to the given username. In GitLab Community Edition, only a single value is accepted. Otherwise, an invalid parameter error is returned. When multiple usernames are given, only issues assigned to all of them are returned. Mutually exclusive with assignee_id
created_after
Query
String (date-time)Return issues created on or after the specified time
created_before
Query
String (date-time)Return issues created on or before the specified time
updated_after
Query
String (date-time)Return issues updated on or after the specified time
updated_before
Query
String (date-time)Return issues updated on or before the specified time
not
Query
ObjectReturn issues that do not match the specified parameters
not[labels]
Query
Array of stringsComma-separated list of label names
not[milestone]
Query
StringMilestone title. Mutually exclusive with not[milestone_id]
not[milestone_id]
Query
StringReturn issues assigned to milestones without the specified timebox value. Mutually exclusive with not[milestone]
Allowed values: Any, None, Upcoming, Started
not[iids]
Query
Array of integersInternal IDs of issues to exclude
not[author_id]
Query
IntegerReturn issues not authored by the user with the given ID. Mutually exclusive with not[author_username]
not[author_username]
Query
StringReturn issues not authored by the user with the given username. Mutually exclusive with not[author_id]
not[assignee_id]
Query
IntegerReturn issues not assigned to the user with the given ID. Mutually exclusive with not[assignee_username]
not[assignee_username]
Query
Array of stringsReturn issues not assigned to the user with the given username. Mutually exclusive with not[assignee_id]
scope
Query
StringReturn issues for the given scope
Allowed values: created-by-me, assigned-to-me, created_by_me, assigned_to_me, all
Default: created_by_me
my_reaction_emoji
Query
StringReturn issues reacted to by the authenticated user with the given emoji. None returns issues with no reaction and Any returns issues with at least one reaction
confidential
Query
BooleanIf true, returns only confidential issues. If false, returns only public issues
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20
non_archived
Query
BooleanIf true, returns only issues from non-archived projects. If false, returns issues from both archived and non-archived projects
Default: true

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesIssue
400Bad Request—

Retrieve an issue

GET /api/v4/issues/{id}

Retrieves a specified issue. Administrators only.

Parameters

NameTypeDescription
id
Path, required
StringID of the issue

Responses

CodeDescriptionSchema
200OKAPIEntitiesIssue
400Bad Request—
404Not Found—

Retrieve issues statistics for the currently authenticated user

GET /api/v4/issues_statistics

Retrieves statistics for issues accessible by the currently authenticated user. By default, returns only issues created by the current user. To get all issues, set the scope attribute to all.

Parameters

NameTypeDescription
labels
Query
Array of stringsComma-separated list of label names. None means no labels are assigned. Any means at least one label is assigned. No+Label (deprecated) means no labels are assigned. Set to an empty string to unassign all labels. If a label does not already exist, this creates a new project label and assigns it to the issue. Predefined names are case-insensitive
milestone
Query
StringMilestone title. None lists all issues with no milestone. Any lists all issues that have an assigned milestone. Support for None and Any is planned for removal. Use the milestone_id attribute instead. Mutually exclusive with milestone_id
milestone_id
Query
StringReturn issues assigned to milestones with a given timebox value. None lists all issues with no milestone. Any lists all issues that have an assigned milestone. Upcoming lists all issues assigned to milestones due in the future. Started lists all issues assigned to open, started milestones. The logic for Upcoming and Started differs from the logic used in the GraphQL API. Mutually exclusive with milestone
Allowed values: Any, None, Upcoming, Started
iids
Query
Array of integersReturn only the issues having the given iid
search
Query
StringSearch issues against their title and description
in
Query
StringModify the scope of the search attribute to title, description, or title,description. If omitted, defaults to title,description
author_id
Query
IntegerReturn issues created by the given user ID. Combine with scope=all or scope=assigned_to_me. Mutually exclusive with author_username
author_username
Query
StringReturn issues created by the given username. Mutually exclusive with author_id
assignee_id
Query
Integer or stringReturn issues assigned to the given user id. None returns unassigned issues and Any returns issues with an assignee. Mutually exclusive with assignee_username
assignee_username
Query
Array of stringsReturn issues assigned to the given username. In GitLab Community Edition, only a single value is accepted. Otherwise, an invalid parameter error is returned. When multiple usernames are given, only issues assigned to all of them are returned. Mutually exclusive with assignee_id
created_after
Query
String (date-time)Return issues created on or after the specified time
created_before
Query
String (date-time)Return issues created on or before the specified time
updated_after
Query
String (date-time)Return issues updated on or after the specified time
updated_before
Query
String (date-time)Return issues updated on or before the specified time
not
Query
ObjectReturn issues that do not match the specified parameters
not[labels]
Query
Array of stringsComma-separated list of label names
not[milestone]
Query
StringMilestone title. Mutually exclusive with not[milestone_id]
not[milestone_id]
Query
StringReturn issues assigned to milestones without the specified timebox value. Mutually exclusive with not[milestone]
Allowed values: Any, None, Upcoming, Started
not[iids]
Query
Array of integersInternal IDs of issues to exclude
not[author_id]
Query
IntegerReturn issues not authored by the user with the given ID. Mutually exclusive with not[author_username]
not[author_username]
Query
StringReturn issues not authored by the user with the given username. Mutually exclusive with not[author_id]
not[assignee_id]
Query
IntegerReturn issues not assigned to the user with the given ID. Mutually exclusive with not[assignee_username]
not[assignee_username]
Query
Array of stringsReturn issues not assigned to the user with the given username. Mutually exclusive with not[assignee_id]
scope
Query
StringReturn issues for the given scope
Allowed values: created_by_me, assigned_to_me, all
Default: created_by_me
my_reaction_emoji
Query
StringReturn issues reacted to by the authenticated user with the given emoji. None returns issues with no reaction and Any returns issues with at least one reaction
confidential
Query
BooleanIf true, returns only confidential issues. If false, returns only public issues

Responses

CodeDescriptionSchema
200OK—
400Bad Request—

Add spent time for an issue

POST /api/v4/projects/{id}/issues/{issue_iid}/add_spent_time

Adds spent time for a specified issue.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerThe internal ID of the issue

Request body (application/json)

PropertyTypeDescription
duration
Required
StringDuration in human-readable format, for example 3h30m

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesIssuableTimeStats
400Bad Request—
401Unauthorized—
404Not found—

GET /api/v4/projects/{id}/issues/{issue_iid}/links

Lists all linked issues for a specified issue, sorted by the relationship creation datetime (ascending). Issues are filtered according to the user authorizations.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerInternal ID of the issue

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesRelatedIssue
400Bad Request—
401Unauthorized—
404Not found—

POST /api/v4/projects/{id}/issues/{issue_iid}/links

Creates a two-way relationship between two issues. The user must be allowed to update both issues to succeed.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerInternal ID of the issue

Request body (application/json)

PropertyTypeDescription
link_typeStringThe type of the relation
Allowed values: relates_to, blocks, is_blocked_by
Default: relates_to
target_issue_iid
Required
String or integerInternal ID of the issue in the target project
target_project_id
Required
String or integerID or URL-encoded path of the target project

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesIssueLink
400Bad Request—
401Unauthorized—
404Not Found—

GET /api/v4/projects/{id}/issues/{issue_iid}/links/{issue_link_id}

Retrieves a specified issue link.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerInternal ID of the issue
issue_link_id
Path, required
String or integerID of the issue relationship

Responses

CodeDescriptionSchema
200OKAPIEntitiesIssueLink
400Bad Request—
401Unauthorized—
404Not found—

DELETE /api/v4/projects/{id}/issues/{issue_iid}/links/{issue_link_id}

Deletes a specified issue link, removing the two-way relationship.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerInternal ID of the issue
issue_link_id
Path, required
String or integerID of the issue relationship

Responses

CodeDescriptionSchema
200OKAPIEntitiesIssueLink
400Bad Request—
401Unauthorized—
404Not found—

List all participants in an issue

GET /api/v4/projects/{id}/issues/{issue_iid}/participants

Lists all users that are participants in a specified issue. If the project is private or the issue is confidential, you need to provide credentials to authorize. In most cases, you should authenticate with a personal access token.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerInternal ID of the issue

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesUserBasic
400Bad Request—
404Not Found—

GET /api/v4/projects/{id}/issues/{issue_iid}/related_merge_requests

Lists all merge requests that are related to a specified issue. If the project is private or the issue is confidential, you need to provide credentials to authorize. In most cases, you should authenticate with a personal access token.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerInternal ID of the issue

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesMergeRequestBasic
400Bad Request—
404Not Found—

Reset spent time for an issue

POST /api/v4/projects/{id}/issues/{issue_iid}/reset_spent_time

Resets the total spent time for a specified issue to 0 seconds.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerThe internal ID of the issue

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesIssuableTimeStats
400Bad Request—
401Unauthorized—
404Not found—

Reset the estimated time for an issue

POST /api/v4/projects/{id}/issues/{issue_iid}/reset_time_estimate

Resets the estimated time for a specified issue to 0 seconds.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerThe internal ID of the issue

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesIssuableTimeStats
400Bad Request—
401Unauthorized—
404Not found—

Set the estimated time for an issue

POST /api/v4/projects/{id}/issues/{issue_iid}/time_estimate

Sets an estimated time of work for a specified issue.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerThe internal ID of the issue

Request body (application/json)

PropertyTypeDescription
duration
Required
StringDuration in human-readable format, for example 3h30m
Example: 3h30m

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesIssuableTimeStats
400Bad request—
401Unauthorized—
404Not found—

Retrieve time tracking stats for an issue

GET /api/v4/projects/{id}/issues/{issue_iid}/time_stats

Retrieves time tracking stats for a specified issue, including time estimate and time spent in seconds and human-readable format (for example, 1h 30m).

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerThe internal ID of the issue

Responses

CodeDescriptionSchema
200OKAPIEntitiesIssuableTimeStats
400Bad Request—
401Unauthorized—
404Not found—

Retrieve user agent details for an issue

GET /api/v4/projects/{id}/issues/{issue_iid}/user_agent_detail

Retrieves user agent details for an issue.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
issue_iid
Path, required
IntegerInternal ID of the issue

Responses

CodeDescriptionSchema
200OKAPIEntitiesUserAgentDetail
400Bad Request—
404Not Found—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIEntitiesCustomAttribute

PropertyTypeDescription
keyStringExample: foo
valueStringExample: bar

APIEntitiesIssuableReferences

PropertyTypeDescription
fullStringExample: test&6
relativeStringExample: &6
shortStringExample: &6

APIEntitiesIssuableTimeStats

PropertyTypeDescription
human_time_estimateStringExample: 3h 30m
human_total_time_spentStringExample: 1h
time_estimateIntegerExample: 12600
total_time_spentIntegerExample: 3600

APIEntitiesIssue

PropertyTypeDescription
_linksObject—
_links.award_emojiStringExample: http://example.com/api/v4/projects/1/issues/2/award_emoji
_links.closed_as_duplicate_ofStringExample: http://example.com/api/v4/projects/1/issues/75
_links.notesStringExample: http://example.com/api/v4/projects/1/issues/2/notes
_links.projectStringExample: http://example.com/api/v4/projects/1
_links.selfStringExample: http://example.com/api/v4/projects/1/issues/2
assigneeAPIEntitiesUserBasic—
assigneesArray of APIEntitiesUserBasic—
authorAPIEntitiesUserBasic—
closed_atString (date-time)Example: 2022-11-15T08:30:55.232Z
closed_byAPIEntitiesUserBasic—
confidentialBoolean—
created_atString (date-time)Example: 2022-08-17T12:46:35.053Z
descriptionStringExample: Repellendus impedit et vel velit dignissimos.
discussion_lockedBoolean—
downvotesInteger—
due_dateString (date)Example: 2022-11-20
has_tasksBooleanExample: true
idInteger (int64)Example: 84
iidIntegerExample: 14
importedBooleanExample: false
imported_fromStringExample: github
issue_typeStringExample: issue
labelsArray of stringsExample: ["bug"]
merge_requests_countInteger—
milestoneAPIEntitiesMilestone—
moved_to_idInteger (int64)Example: 1
project_idInteger (int64)Example: 4
referencesAPIEntitiesIssuableReferences—
service_desk_reply_toStringExample: user@example.com
severityStringThe severity of the issue
Allowed values: UNKNOWN, LOW, MEDIUM, HIGH, CRITICAL
start_dateString (date)Example: 2022-11-18
stateStringExample: closed
subscribedBooleanExample: false
task_completion_statusAPIEntitiesTaskCompletionStatus—
task_statusStringExample: 2 of 4 tasks completed
time_statsAPIEntitiesIssuableTimeStats—
titleStringExample: Impedit et ut et dolores vero provident ullam est
typeStringThe type of the issue
Allowed values: ISSUE, INCIDENT, TEST_CASE, REQUIREMENT, TASK, TICKET
Example: ISSUE
updated_atString (date-time)Example: 2022-11-14T17:22:01.470Z
upvotesInteger—
user_notes_countInteger—
web_urlStringExample: http://example.com/example/example/issues/14

APIEntitiesIssueBasic

PropertyTypeDescription
assigneeAPIEntitiesUserBasic—
assigneesArray of APIEntitiesUserBasic—
authorAPIEntitiesUserBasic—
closed_atString (date-time)Example: 2022-11-15T08:30:55.232Z
closed_byAPIEntitiesUserBasic—
confidentialBoolean—
created_atString (date-time)Example: 2022-08-17T12:46:35.053Z
descriptionStringExample: Repellendus impedit et vel velit dignissimos.
discussion_lockedBoolean—
downvotesInteger—
due_dateString (date)Example: 2022-11-20
idInteger (int64)Example: 84
iidIntegerExample: 14
issue_typeStringExample: issue
labelsArray of stringsExample: ["bug"]
merge_requests_countInteger—
milestoneAPIEntitiesMilestone—
project_idInteger (int64)Example: 4
start_dateString (date)Example: 2022-11-18
stateStringExample: closed
task_completion_statusAPIEntitiesTaskCompletionStatus—
time_statsAPIEntitiesIssuableTimeStats—
titleStringExample: Impedit et ut et dolores vero provident ullam est
typeStringThe type of the issue
Allowed values: ISSUE, INCIDENT, TEST_CASE, REQUIREMENT, TASK, TICKET
Example: ISSUE
updated_atString (date-time)Example: 2022-11-14T17:22:01.470Z
upvotesInteger—
user_notes_countInteger—
web_urlStringExample: http://example.com/example/example/issues/14
PropertyTypeDescription
idInteger (int64)Example: 1
link_typeStringExample: relates_to
source_issueAPIEntitiesIssueBasic—
target_issueAPIEntitiesIssueBasic—

APIEntitiesMergeRequestAuthor

PropertyTypeDescription
avatar_pathStringExample: /user/avatar/28/The-Big-Lebowski-400-400.png
avatar_urlStringURL of the user’s avatar
Example: https://gravatar.com/avatar/1
botBooleanIf true, the author is a bot
Example: false
custom_attributesArray of APIEntitiesCustomAttribute—
idInteger (int64)ID of the user
Example: 1
lockedBooleanIf true, the user account is locked, and the user cannot sign in until the lock expires or an administrator unlocks the account
nameStringName of the user. For a bot user, **** if the current user cannot read the bot’s project or group
Example: Administrator
public_emailStringPublic email address of the user
Example: john@example.com
stateStringState of the user account. Possible values: active, blocked, ldap_blocked, blocked_pending_approval, banned, or deactivated
Example: active
usernameStringUsername of the user
Example: admin
web_urlStringURL of the user’s profile
Example: https://gitlab.example.com/root

APIEntitiesMergeRequestBasic

PropertyTypeDescription
allow_collaborationBooleanIf true, the fork allows commits from members who can merge to the target branch. Returned only for merge requests from forks
allow_maintainer_to_pushBooleanReturned only for merge requests from forks. Deprecated. Use allow_collaboration instead
assigneeAPIEntitiesUserBasicFirst user assigned to the merge request. Deprecated. Use assignees instead
assigneesArray of APIEntitiesUserBasicUsers assigned to the merge request
authorAPIEntitiesMergeRequestAuthorUser who created the merge request
blocking_discussions_resolvedBooleanIf true, no unresolved threads block the merge. Always true if the project does not require all threads to be resolved before merge
closed_atString (date-time)Timestamp of when the merge request was closed
Example: 2022-01-31T15:10:45.080Z
closed_byAPIEntitiesUserBasicUser who closed the merge request. null if the merge request is not closed
created_atString (date-time)Example: 2022-08-17T12:46:35.053Z
descriptionStringExample: Repellendus impedit et vel velit dignissimos.
description_htmlStringDescription of the merge request rendered as HTML. Returned only if render_html is true
detailed_merge_statusStringDetailed merge status of the merge request. Accounts for every check that can block a merge. Can be approvals_syncing (approvals are syncing), checking (Git is testing whether a valid merge is possible), ci_must_pass (a CI/CD pipeline must succeed before merge), ci_still_running (a CI/CD pipeline is still running), commits_status (the source branch must exist and contain commits), conflict (conflicts exist between the source and target branches), discussions_not_resolved (all discussions must be resolved before merge), draft_status (the merge request is a draft), jira_association_missing (the title or description must reference a Jira issue), locked_lfs_files (LFS files locked by other users must be unlocked before merge), locked_paths (paths locked by other users must be unlocked before merging to the default branch), merge_request_blocked (blocked by another merge request), merge_time (cannot be merged until after the specified time), mergeable (the branch can merge cleanly into the target branch), need_rebase (the merge request must be rebased), not_approved (approval is required before merge), not_open (the merge request must be open before merge), preparing (the merge request diff is being created), requested_changes (reviewers have requested changes), security_policy_pipeline_check (when security policies are enforced, all pipelines for the latest commit must succeed before merge), security_policy_violations (all security policies must be satisfied), status_checks_must_pass (all status checks must pass before merge), title_regex (the title must match the regular expression set in the project settings), or unchecked (Git has not yet tested whether a valid merge is possible)
Example: mergeable
discussion_lockedBooleanIf true, discussions are locked. Only project members can add, edit or resolve comments in locked discussions
downvotesIntegerNumber of downvotes for the merge request
draftBooleanIf true, the merge request is a draft
force_remove_source_branchBooleanIf true, the source branch is forced to be deleted after merge
has_conflictsBooleanIf true, the merge request has conflicts and cannot merge. false unless merge_status is cannot_be_merged
idInteger (int64)Example: 84
iidIntegerExample: 14
importedBooleanIf true, the merge request was imported
imported_fromStringSource of the import, such as bitbucket
Example: bitbucket
labelsArray of stringsNames of the labels assigned to the merge request, sorted by name. If with_labels_details is true, an array of label objects with id, name, color, text_color, description, description_html and archived instead
merge_afterString (date-time)If set, timestamp after which the merge request can be merged. Introduced in GitLab 17.8
Example: 2022-01-31T15:10:45.080Z
merge_commit_shaStringSHA of the merge commit. null until the merge request is merged
Example: 1234abcd
merge_statusStringStatus of the merge request. Can be unchecked, checking, can_be_merged, cannot_be_merged or cannot_be_merged_recheck. Affects has_conflicts. Deprecated. Use detailed_merge_status instead
Example: unchecked
merge_userAPIEntitiesUserBasicUser who merged the merge request or set it to auto-merge, or null
merge_when_pipeline_succeedsBooleanIf true, the merge request is set to auto-merge
merged_atString (date-time)Timestamp of when the merge request was merged
Example: 2022-01-31T15:10:45.080Z
merged_byAPIEntitiesUserBasicUser who merged the merge request or set it to auto-merge. Deprecated. Use merge_user instead
milestoneAPIEntitiesMilestoneMilestone assigned to the merge request
prepared_atString (date-time)Timestamp of when the merge request was prepared. Set one time, after the diff is created, pipeline creation and the mergeability check are started, Git LFS objects are linked, and notifications are sent. Not updated when more changes are added
Example: 2022-01-31T15:10:45.080Z
project_idInteger (int64)Example: 4
referenceStringInternal reference of the merge request, in short format. Deprecated. Use references instead
Example: !1
referencesAPIEntitiesIssuableReferencesInternal references of the merge request: short, relative and full. When fetched from the project of the merge request, relative matches short. When fetched from a project or group in another namespace, relative matches full
reviewersArray of APIEntitiesUserBasicReviewers of the merge request
shaStringSHA of the head commit of the source branch
Example: 1234abcd
should_remove_source_branchBooleanIf true, the source branch is deleted after merge
source_branchStringName of the source branch
source_project_idInteger (int64)ID of the source project. Equal to target_project_id, unless the merge request comes from a fork
squashBooleanIf true, squash commits when merging. Project squash settings can override this value. Use squash_on_merge to take them into account
squash_commit_shaStringSHA of the squash commit. Empty until the merge request is merged
Example: 1234abcd
squash_on_mergeBooleanIf true, commits are squashed on merge
stateStringExample: closed
target_branchStringName of the target branch
target_project_idInteger (int64)ID of the target project
task_completion_statusAPIEntitiesTaskCompletionStatusCompletion status of the task list: count and completed_count
time_statsAPIEntitiesIssuableTimeStatsTime tracking statistics of the merge request: time_estimate, total_time_spent, human_time_estimate and human_total_time_spent
titleStringExample: Impedit et ut et dolores vero provident ullam est
title_htmlStringTitle of the merge request rendered as HTML. Returned only if render_html is true
updated_atString (date-time)Example: 2022-11-14T17:22:01.470Z
upvotesIntegerNumber of upvotes for the merge request
user_notes_countIntegerNumber of user comments on the merge request
web_urlStringWeb URL of the merge request
Example: https://gitlab.example.com/my-group/my-project/-/merge_requests/1
work_in_progressBooleanIf true, the merge request is a draft. Deprecated. Use draft instead

APIEntitiesMilestone

PropertyTypeDescription
created_atString—
descriptionString—
due_dateString—
expiredBoolean—
group_idString—
idInteger (int64)—
iidInteger (int64)—
project_idInteger (int64)—
start_dateString—
stateString—
titleString—
updated_atString—
web_urlString—

APIEntitiesRelatedIssue

PropertyTypeDescription
_linksObject—
_links.award_emojiStringExample: http://example.com/api/v4/projects/1/issues/2/award_emoji
_links.closed_as_duplicate_ofStringExample: http://example.com/api/v4/projects/1/issues/75
_links.notesStringExample: http://example.com/api/v4/projects/1/issues/2/notes
_links.projectStringExample: http://example.com/api/v4/projects/1
_links.selfStringExample: http://example.com/api/v4/projects/1/issues/2
assigneeAPIEntitiesUserBasic—
assigneesArray of APIEntitiesUserBasic—
authorAPIEntitiesUserBasic—
closed_atString (date-time)Example: 2022-11-15T08:30:55.232Z
closed_byAPIEntitiesUserBasic—
confidentialBoolean—
created_atString (date-time)Example: 2022-08-17T12:46:35.053Z
descriptionStringExample: Repellendus impedit et vel velit dignissimos.
discussion_lockedBoolean—
downvotesInteger—
due_dateString (date)Example: 2022-11-20
has_tasksBooleanExample: true
idInteger (int64)Example: 84
iidIntegerExample: 14
importedBooleanExample: false
imported_fromStringExample: github
issue_link_idInteger (int64)Example: 1
issue_typeStringExample: issue
labelsArray of stringsExample: ["bug"]
link_created_atString (date-time)Example: 2022-01-31T15:10:44.988Z
link_typeStringExample: relates_to
link_updated_atString (date-time)Example: 2022-01-31T15:10:44.988Z
merge_requests_countInteger—
milestoneAPIEntitiesMilestone—
moved_to_idInteger (int64)Example: 1
project_idInteger (int64)Example: 4
referencesAPIEntitiesIssuableReferences—
service_desk_reply_toStringExample: user@example.com
severityStringThe severity of the issue
Allowed values: UNKNOWN, LOW, MEDIUM, HIGH, CRITICAL
start_dateString (date)Example: 2022-11-18
stateStringExample: closed
subscribedBooleanExample: false
task_completion_statusAPIEntitiesTaskCompletionStatus—
task_statusStringExample: 2 of 4 tasks completed
time_statsAPIEntitiesIssuableTimeStats—
titleStringExample: Impedit et ut et dolores vero provident ullam est
typeStringThe type of the issue
Allowed values: ISSUE, INCIDENT, TEST_CASE, REQUIREMENT, TASK, TICKET
Example: ISSUE
updated_atString (date-time)Example: 2022-11-14T17:22:01.470Z
upvotesInteger—
user_notes_countInteger—
web_urlStringExample: http://example.com/example/example/issues/14

APIEntitiesTaskCompletionStatus

PropertyTypeDescription
completed_countIntegerExample: 3
countIntegerExample: 5

APIEntitiesUserAgentDetail

PropertyTypeDescription
akismet_submittedBooleanIf true, the details were submitted to Akismet for spam detection
Example: false
ip_addressStringIP address of the client that created the item
Example: 127.0.0.1
user_agentStringUser agent string of the client that created the item
Example: AppleWebKit/537.36

APIEntitiesUserBasic

PropertyTypeDescription
avatar_pathStringExample: /user/avatar/28/The-Big-Lebowski-400-400.png
avatar_urlStringURL of the user’s avatar
Example: https://gravatar.com/avatar/1
custom_attributesArray of APIEntitiesCustomAttribute—
idInteger (int64)ID of the user
Example: 1
lockedBooleanIf true, the user account is locked, and the user cannot sign in until the lock expires or an administrator unlocks the account
nameStringName of the user. For a bot user, **** if the current user cannot read the bot’s project or group
Example: Administrator
public_emailStringPublic email address of the user
Example: john@example.com
stateStringState of the user account. Possible values: active, blocked, ldap_blocked, blocked_pending_approval, banned, or deactivated
Example: active
usernameStringUsername of the user
Example: admin
web_urlStringURL of the user’s profile
Example: https://gitlab.example.com/root