getField

Description

Get the value of a field for the given Jira issue.

Parameters

Returns

Returns a Promise to the value; you must use await.

Exact return type matches the field being accessed.

Examples

Return a string of the Summary field value of the current issue.

await api.issue.getField(issue, "summary") // “Implement SSO Login”

Return a datetime of the Actual Start field of the current issue.

await api.issue.getField(issue, "customfield_10008") // “2024-09-17T04:00:00.000-0400"

Return the Assignee of the current issue’s Parent.

const parentIssue = await api.issue.getParentIssue(issue) const assignedTo = await api.issue.getFields(parentIssue, "assignee") // Returns a User Object

You are viewing the documentation for Jira Cloud.

Determining custom field IDs