Represents a Jira issue resource with chainable async methods.

Implements PromiseLike<JiraIssue> so it can be awaited directly to fetch the issue, while also exposing sub-resource methods.

// Await directly to get issue info
const issue = await jiraClient.issue('PROJ-42');

// Get issue with specific fields
const issue = await jiraClient.issue('PROJ-42').get({ fields: 'summary,status,assignee' });

// Get comments
const comments = await jiraClient.issue('PROJ-42').comments();

// Get worklogs
const worklogs = await jiraClient.issue('PROJ-42').worklogs();

// Get changelog
const changelog = await jiraClient.issue('PROJ-42').changelog();

// Get available transitions
const transitions = await jiraClient.issue('PROJ-42').transitions();

// Get remote links
const remoteLinks = await jiraClient.issue('PROJ-42').remotelinks();

// Get votes
const votes = await jiraClient.issue('PROJ-42').votes();

// Get watchers
const watchers = await jiraClient.issue('PROJ-42').watchers();

Implements

Methods

  • Fetches a single comment by ID.

    GET /rest/api/latest/issue/{issueIdOrKey}/comment/{id}

    Parameters

    • commentId: string | number

      The numeric comment ID

    Returns Promise<JiraComment>

    The comment object

  • Fetches the remote links (external URLs) for this issue.

    GET /rest/api/latest/issue/{issueIdOrKey}/remotelink

    Parameters

    • OptionalglobalId: string

      Optional global ID to filter by a specific remote link

    Returns Promise<JiraRemoteLink[]>

    An array of remote links

  • Fetches a single worklog by ID.

    GET /rest/api/latest/issue/{issueIdOrKey}/worklog/{id}

    Parameters

    • worklogId: string | number

      The numeric worklog ID

    Returns Promise<JiraWorklog>

    The worklog object