Create issue field for an organization
Creates a new issue field for an organization.
You can find out more about issue fields in Managing issue fields in an organization.
To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and
personal access tokens (classic) need the admin:org scope to use this endpoint.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
Request Body required
Section titled “ Request Body required ”object
Name of the issue field.
Description of the issue field.
The data type of the issue field.
The visibility of the issue field. Can be organization_members_only (visible only within the organization) or all (visible to all users who can see issues). Only used when the visibility settings feature is enabled. Defaults to organization_members_only.
Options for select fields. Required when data_type is ‘single_select’ or ‘multi_select’.
object
Name of the option.
Description of the option.
Color for the option.
Priority of the option for ordering.
Examples
{ "name": "Priority", "description": "Level of importance for the issue", "data_type": "single_select", "options": [ { "name": "High", "description": "High priority", "color": "red" }, { "name": "Medium", "description": "Medium priority", "color": "yellow" }, { "name": "Low", "description": "Low priority", "color": "green" } ]}Responses
Section titled “ Responses ”Response
A custom attribute defined at the organization level for attaching structured data to issues.
object
The unique identifier of the issue field.
The node identifier of the issue field.
The name of the issue field.
The description of the issue field.
The data type of the issue field.
The visibility of the issue field. Can be organization_members_only (visible only within the organization) or all (visible to all users who can see issues).
Available options for single select and multi select fields.
object
The unique identifier of the option.
The name of the option.
The description of the option.
The color of the option.
The priority of the option for ordering.
The time the option was created.
The time the option was last updated.
The time the issue field was created.
The time the issue field was last updated.
Examples
{ "id": 512, "node_id": "IF_kwDNAd3NAZr", "name": "Priority", "description": "Level of importance for the issue", "data_type": "single_select", "options": [ { "id": 1, "name": "High", "description": "High priority", "color": "red", "priority": 1, "created_at": "2025-01-15T10:30:15Z", "updated_at": "2025-01-15T10:30:15Z" }, { "id": 2, "name": "Medium", "description": "Medium priority", "color": "yellow", "priority": 2, "created_at": "2025-01-15T10:30:15Z", "updated_at": "2025-01-15T10:30:15Z" }, { "id": 3, "name": "Low", "description": "Low priority", "color": "green", "priority": 3, "created_at": "2025-01-15T10:30:15Z", "updated_at": "2025-01-15T10:30:15Z" } ], "created_at": "2025-01-15T10:30:15Z", "updated_at": "2025-01-15T10:30:15Z"}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Validation failed, or the endpoint has been spammed.
Validation Error Simple
object
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ "example" ]}