Create an issue
Creates an issue for a specified project.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ”object
The title of an issue
Date time when the issue was created. Available only for admins and project owners.
The IID of a merge request for which to resolve discussions
The ID of a discussion to resolve, also pass merge_request_to_resolve_discussions_of
The internal ID of a project issue. Available only for admins and project owners.
The description of an issue
The array of user IDs to assign issue
[Deprecated] The ID of a user to assign issue
The ID of a milestone to assign issue
The title of a project or ancestor-group milestone to assign the issue to. Mutually exclusive with milestone_id.
Comma-separated list of label names
Comma-separated list of label names
Comma-separated list of label names
Date string in the format YEAR-MONTH-DAY
Date string in the format YEAR-MONTH-DAY
Boolean parameter if the issue should be confidential
Boolean parameter indicating if the issue’s discussion is locked
The type of the issue. Accepts: issue, incident, test_case, requirement, task, ticket
The severity of the issue. Only applies to incidents. Accepts: unknown, low, medium, high, critical
The weight of the issue
The ID of an epic to associate the issue with
The IID of an epic to associate the issue with (deprecated)
Responses
Section titled “ Responses ”Created
object
object
object
object
object
object
object
object
One of [“ISSUE”, “INCIDENT”, “TEST_CASE”, “REQUIREMENT”, “TASK”, “TICKET”]
object
object
object
object
object
object
One of [“UNKNOWN”, “LOW”, “MEDIUM”, “HIGH”, “CRITICAL”]
object
object
Example
{ "id": 84, "iid": 14, "project_id": 4, "title": "Impedit et ut et dolores vero provident ullam est", "description": "Repellendus impedit et vel velit dignissimos.", "state": "closed", "created_at": "2022-08-17T12:46:35.053Z", "updated_at": "2022-11-14T17:22:01.470Z", "closed_at": "2022-11-15T08:30:55.232Z", "closed_by": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "labels": [ "bug" ], "assignees": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "author": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "type": "ISSUE", "assignee": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "start_date": "2022-11-18", "due_date": "2022-11-20", "issue_type": "issue", "web_url": "http://example.com/example/example/issues/14", "time_stats": { "time_estimate": 12600, "total_time_spent": 3600, "human_time_estimate": "3h 30m", "human_total_time_spent": "1h" }, "task_completion_status": { "count": 5, "completed_count": 3 }, "weight": 5, "blocking_issues_count": 2, "has_tasks": true, "task_status": "2 of 4 tasks completed", "references": { "short": "&6", "relative": "&6", "full": "test&6" }, "subscribed": false, "moved_to_id": 1, "imported": false, "imported_from": "github", "service_desk_reply_to": "user@example.com", "iteration": { "id": 1, "iid": 1, "sequence": 1, "group_id": 1, "title": "Iteration I", "description": "Iteration description", "state": 1, "created_at": "2022-01-31T15:10:45.080Z", "updated_at": "2022-01-31T15:10:45.080Z", "start_date": "2022-01-01", "due_date": "2022-01-31", "web_url": "https://gitlab.example.com/groups/gitlab-org/-/iterations/1" }}Bad Request
Not Found