Skip to content

List project fields for organization

GET
/orgs/{org}/projectsV2/{project_number}/fields

List all fields for a specific organization-owned project.

API method documentation

project_number
required
integer

The project’s number.

org
required
string

The organization name. The name is not case sensitive.

per_page
integer
default: 30

The number of results per page (max 100). For more information, see “Using pagination in the REST API.”

before
string

A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see “Using pagination in the REST API.”

after
string

A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see “Using pagination in the REST API.”

Response

Media type application/json
Array<object>
Projects v2 Field

A field inside a projects v2 project

object
id
required

The unique identifier of the field.

integer
issue_field_id

The ID of the issue field.

integer
node_id

The node ID of the field.

string
project_url
required

The API URL of the project that contains the field.

string
name
required

The name of the field.

string
data_type
required

The field’s data type.

string
Allowed values: assignees linked_pull_requests reviewers labels milestone repository title text single_select number date iteration issue_type parent_issue sub_issues_progress
options

The options available for single select fields.

Array<object>
Projects v2 Single Select Option

An option for a single select field

object
id
required

The unique identifier of the option.

string
name
required

The display name of the option, in raw text and HTML formats.

object
raw
required
string
html
required
string
description
required

The description of the option, in raw text and HTML formats.

object
raw
required
string
html
required
string
color
required

The color associated with the option.

string
configuration

Configuration for iteration fields.

object
start_day

The day of the week when the iteration starts.

integer
duration

The duration of the iteration in days.

integer
iterations
Array<object>
Projects v2 Iteration Setting

An iteration setting for an iteration field

object
id
required

The unique identifier of the iteration setting.

string
start_date
required

The start date of the iteration.

string format: date
duration
required

The duration of the iteration in days.

integer
title
required

The iteration title, in raw text and HTML formats.

object
raw
required
string
html
required
string
completed
required

Whether the iteration has been completed.

boolean
created_at
required

The time when the field was created.

string format: date-time
updated_at
required

The time when the field was last updated.

string format: date-time
Examples
Example default
[
{
"id": 12345,
"node_id": "PVTF_lADOABCD1234567890",
"name": "Priority",
"data_type": "single_select",
"project_url": "https://api.github.com/projects/67890",
"options": [
{
"id": "option_1",
"name": {
"html": "Low",
"raw": "Low"
},
"color": "GREEN",
"description": {
"html": "Low priority items",
"raw": "Low priority items"
}
},
{
"id": "option_2",
"name": {
"html": "Medium",
"raw": "Medium"
},
"color": "YELLOW",
"description": {
"html": "Medium priority items",
"raw": "Medium priority items"
}
},
{
"id": "option_3",
"name": {
"html": "High",
"raw": "High"
},
"color": "RED",
"description": {
"html": "High priority items",
"raw": "High priority items"
}
}
],
"created_at": "2022-04-28T12:00:00Z",
"updated_at": "2022-04-28T12:00:00Z"
},
{
"id": 67891,
"node_id": "PVTF_lADOABCD9876543210",
"name": "Status",
"data_type": "single_select",
"project_url": "https://api.github.com/projects/67890",
"options": [
{
"id": "option_4",
"name": {
"html": "Todo",
"raw": "Todo"
},
"color": "GRAY",
"description": {
"html": "Items to be worked on",
"raw": "Items to be worked on"
}
},
{
"id": "option_5",
"name": {
"html": "In Progress",
"raw": "In Progress"
},
"color": "BLUE",
"description": {
"html": "Items currently being worked on",
"raw": "Items currently being worked on"
}
},
{
"id": "option_6",
"name": {
"html": "Done",
"raw": "Done"
},
"color": "GREEN",
"description": {
"html": "Completed items",
"raw": "Completed items"
}
}
],
"created_at": "2022-04-29T10:30:00Z",
"updated_at": "2022-04-29T10:30:00Z"
},
{
"id": 24680,
"node_id": "PVTF_lADOABCD2468024680",
"name": "Team notes",
"data_type": "text",
"project_url": "https://api.github.com/projects/67890",
"created_at": "2022-05-15T08:00:00Z",
"updated_at": "2022-05-15T08:00:00Z"
},
{
"id": 13579,
"node_id": "PVTF_lADOABCD1357913579",
"name": "Story points",
"data_type": "number",
"project_url": "https://api.github.com/projects/67890",
"created_at": "2022-06-01T14:30:00Z",
"updated_at": "2022-06-01T14:30:00Z"
},
{
"id": 98765,
"node_id": "PVTF_lADOABCD9876598765",
"name": "Due date",
"data_type": "date",
"project_url": "https://api.github.com/projects/67890",
"created_at": "2022-06-10T09:15:00Z",
"updated_at": "2022-06-10T09:15:00Z"
},
{
"id": 11223,
"node_id": "PVTF_lADOABCD1122311223",
"name": "Sprint",
"data_type": "iteration",
"project_url": "https://api.github.com/projects/67890",
"configuration": {
"duration": 14,
"start_day": 1,
"iterations": [
{
"id": "iter_1",
"title": {
"html": "Sprint 1",
"raw": "Sprint 1"
},
"start_date": "2022-07-01",
"duration": 14
},
{
"id": "iter_2",
"title": {
"html": "Sprint 2",
"raw": "Sprint 2"
},
"start_date": "2022-07-15",
"duration": 14
}
]
},
"created_at": "2022-06-20T16:45:00Z",
"updated_at": "2022-06-20T16:45:00Z"
}
]
Link
string
Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"

Not modified

Requires authentication

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Forbidden

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}