Add issue field values to an issue
Add custom field values to an issue. You can set values for organization-level issue fields that have been defined for the repository’s organization. Adding an empty array will clear all existing field values for the issue.
This endpoint supports the following field data types:
text: String values for text fieldssingle_select: Option names for single-select fields (must match an existing option name)number: Numeric values for number fieldsdate: ISO 8601 date strings for date fields
Only users with push access to the repository can add issue field values. If you don’t have the proper permissions, you’ll receive a 403 Forbidden response.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see “Rate limits for the API” and “Best practices for using the REST API.”
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
The number that identifies the issue.
Request Body required
Section titled “ Request Body required ”object
An array of issue field values to add to this issue. Each field value must include the field ID and the value to set.
object
The ID of the issue field to set
The value to set for text, single_select, or date fields
The value to set for number fields
The value to set for multi_select fields (array of option names)
Examples
Add multiple field values
{ "issue_field_values": [ { "field_id": 123, "value": "Critical" }, { "field_id": 456, "value": 5 }, { "field_id": 789, "value": "2024-12-31" } ]}Add a single field value
{ "issue_field_values": [ { "field_id": 123, "value": "High Priority" } ]}Responses
Section titled “ Responses ”Response
The current issue field values for this issue after adding the new values
A value assigned to an issue field
object
Unique identifier for the issue field.
The human-readable name of the issue field.
The data type of the issue field
Details about the selected option (only present for single_select fields)
object
Unique identifier for the option.
The name of the option
The color of the option
Details about the selected options
object
Unique identifier for the option.
The name of the option
The color of the option
Examples
[ { "issue_field_id": 1, "issue_field_name": "DRI", "node_id": "IFT_GDKND", "data_type": "text", "value": "DRI" }, { "issue_field_id": 2, "issue_field_name": "Priority", "node_id": "IFSS_SADMS", "data_type": "single_select", "value": 1, "single_select_option": { "id": 1, "name": "High", "color": "red" } }, { "issue_field_id": 3, "issue_field_name": "Points", "node_id": "IFN_POINTS", "data_type": "number", "value": 42 }, { "issue_field_id": 4, "issue_field_name": "Due Date", "node_id": "IFD_DUEDATE", "data_type": "date", "value": "2025-12-25" }, { "issue_field_id": 5, "issue_field_name": "Labels", "node_id": "IFMS_LABELS", "data_type": "multi_select", "value": "Frontend,Backend", "multi_select_options": [ { "id": 1, "name": "Frontend", "color": "blue" }, { "id": 2, "name": "Backend", "color": "green" } ] }]Bad Request
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Scim Error
object
Example generated
{ "message": "example", "documentation_url": "example", "detail": "example", "status": 1, "scimType": "example", "schemas": [ "example" ]}Forbidden
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}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
object
object
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ { "resource": "example", "field": "example", "message": "example", "code": "example", "index": 1, "value": [ "example" ] } ]}Service unavailable
object
Example generated
{ "code": "example", "message": "example", "documentation_url": "example"}