Class: Issues

Issues


new Issues()

Methods


all(qs)

Get all issues created by the authenticated user.

Parameters:
Name Type Description
qs object

query params

Returns:
Type
Promise

create(projectId, issue)

create a new project issue

Parameters:
Name Type Description
projectId number | string

The ID or URL-encoded path of the project owned by the authenticated user

issue object
Returns:
Type
Promise

group(groupId, qs)

Get a list of a group's issues.

Parameters:
Name Type Description
groupId number | string

The ID or URL-encoded path of the group owned by the authenticated user

qs object

query params

Returns:
Type
Promise

milestone(projectId, milestoneId)

Gets all issues assigned to a single project milestone.

Parameters:
Name Type Description
projectId number | string

The ID or URL-encoded path of the project owned by the authenticated user

milestoneId number

The ID of a project milestone

Returns:
Type
Promise

project(projectId)

Get a list of a project's issues.

Parameters:
Name Type Description
projectId number | string

The ID or URL-encoded path of the project

Returns:
Type
Promise

query(projectId, issueIid)

Get a single project issue.

Parameters:
Name Type Description
projectId number | string

The ID or URL-encoded path of the project owned by the authenticated user

issueIid number

The internal ID of a project's issue

Returns:
Type
Promise

remove(projectId, issueIid)

Only for admins and project owners. Soft deletes the issue in question.

Parameters:
Name Type Description
projectId number | string

The ID or URL-encoded path of the project owned by the authenticated user

issueIid number

The internal ID of a project's issue


subscribe(projectId, issueIid)

Subscribes the authenticated user to an issue to receive notifications.

Parameters:
Name Type Description
projectId number | string

The ID or URL-encoded path of the project owned by the authenticated user

issueIid number

The internal ID of a project's issue


unsubscribe(projectId, issueIid)

Unsubscribes the authenticated user from the issue to not receive notifications from it.

Parameters:
Name Type Description
projectId number | string

The ID or URL-encoded path of the project owned by the authenticated user

issueIid number

The internal ID of a project's issue