Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Table plus | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Description
Excerpt | ||
---|---|---|
| ||
Get the value of a field for the given Jira issue. |
Parameters
Table plus | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Returns
Info |
---|
Returns a Promise to the value; you must use |
Exact return type matches the field being accessed.
Examples
Return a string of the Summary field value of the current issue.
Code Block |
---|
await api.issue.getField(issue, "summary") // “Implement SSO Login” |
Return a datetime of the Actual Start field of the current issue.
Code Block |
---|
await api.issue.getField(issue, "customfield_10008") // “2024-09-17T04:00:00.000-0400" |
Return the Assignee of the current issue’s Parent.
Code Block |
---|
const parentIssue = await api.issue.getParentIssue(issue) const testassignedTo = await api.issue.getFields(parentIssue, "assignee") // Returns a User Object |
You are viewing the documentation for Jira Cloud.
On this page
|
---|
Determining custom field IDs
Include Page | ||||
---|---|---|---|---|
|