Gamma API

List issue schemas

GET
/api/projects/{projectId}/issue-schemas

In the order they were created, with their fields and categories. Deleted schemas that deleted issues still use are included, with deletedAt set.

Who may call it: Anyone on the project. API keys: yes, given issue.read for this project.

Authorization

cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

Response Body

OK.

application/json
  1. response
schemas*array<>
Example Request
curl -X GET 'http://localhost:3000/api/projects/string/issue-schemas'
Example Response
{  "schemas": [    {      "id": "string",      "projectId": "string",      "name": "string",      "description": "string",      "fields": [        {          "id": "string",          "schemaId": "string",          "label": "string",          "type": "text",          "options": [            "string"          ],          "statuses": [            {              "name": "string",              "colorHex": "string",              "completion": "notStarted"            }          ],          "choices": null,          "multiple": true,          "scope": "members",          "role": "status",          "position": -9007199254740991        }      ],      "categories": [        {          "id": "string",          "schemaId": "string",          "parentId": "string",          "name": "string",          "requiredFieldIds": [            "string"          ]        }      ],      "issueCount": -9007199254740991,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "deletedAt": "2019-08-24T14:15:22Z"    }  ]}