Get fields
The Jira Get fields action retrieves field metadata from a connected Jira Cloud instance so agents can discover available fields and their IDs. Use this read-only action to find the correct field IDs for custom fields before using them in actions like Edit issue.
You can optionally filter to show only custom fields using the custom only parameter, which restricts the output to fields created by Jira administrators rather than built-in system fields. The action only returns fields the connected account has permission to view.
Limitations
-
This action is designed and validated against Jira Cloud endpoints, for example,
api.atlassian.com/ex/jira/.... -
Custom fields are created and managed per Jira instance, so field IDs, names, and types differ for every customer. Flows built with this action are not automatically portable across Jira instances without re‑mapping the field IDs.
-
The action depends on Jira's standard "get fields" API. If Jira is unavailable, misconfigured, or rate‑limited, the action may fail or return partial results.
Prerequisites
-
Your admin must complete the initial Jira setup and enable Jira actions so that the Jira action pack is available in Agent Builder.
-
Each user is prompted to connect their Jira account via OAuth in Glean before running agents that use Jira actions, including Jira Get fields.
-
The connected account needs read access to Jira projects and configuration to view field metadata. If the account cannot see a field in Jira, this action will not return it.
Supported parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Custom only | boolean | No | false | When true, the action filters the Jira "get fields" response to only include custom fields defined by administrators. When false (default), it returns both Jira system fields and custom fields. |
Usage example
You want to update the "Story Points" custom field on a Jira issue, but you need to find the correct field ID first.
Instruction to an agent:
"Find the field ID for the Story Points custom field in Jira, then update issue ENG-1234 to set the story points to 8."
Resulting behavior:
-
Calls Get fields with:
Custom onlyset to true to filter only custom fields.
-
Retrieves a list of custom fields including:
-
Field name: "Story Points"
-
Field ID: customfield_10016
-
Field type: number
-
-
Identifies the matching field by searching for "Story Points" in the field names.
-
Calls Edit issue with:
-
Issue ID or keyset to ENG-1234. -
Fieldsobject containing{"customfield_10016": 8}.
-
-
Updates the Story Points field on the issue to 8.
Workflow tip: Use Get fields to dynamically discover custom field IDs instead of hard-coding them, making your agents portable across different Jira configurations. Set custom only to true when you only need administrator-defined fields to reduce the response size.