Skip to main content
Every leiga.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Issues

fields

issues.fields List the fields one issue type exposes, including custom ones Risk: read
Input Lists the fields one issue type exposes, including the custom fields that appear in an issue’s customFieldData. Output

get

issues.get Get one issue by id, with its fields and tags Risk: read
Input Takes issueId as the id query parameter and answers one issue. Custom field values live in customFieldData, keyed by codes such as customfield_1. Output

getByNumber

issues.getByNumber Get one issue by its human-readable number, such as LGC-12 Risk: read
Input Looks an issue up by its human-readable number, such as LGC-12. Output

list

issues.list Query the issues in a project, with filters and paging Risk: read
Input Returns { issues, total }, where total counts every match and issues holds one page. statusTypes filters by phase (2 not started, 3 in progress, 4 done); orderBy accepts createTime or updateTime and sort accepts ASC or DESC. Output

types

issues.types List the issue types a project offers, such as bug or task Risk: read
Input Lists the issue types a project offers, each with an id, code and name. Output

Members

list

members.list List the members of a project with their roles Risk: read
Input A GET with projectId and an optional keyword filter, answering each member with their departments and project roles. Output

Projects

get

projects.get Get one project by id, with its metadata Risk: read
Input Takes projectId as a query parameter and answers a single project object with projectName, projectKey, leader, createTime and updateTime. Output

getByKey

projects.getByKey Get one project by its key, such as LGC Risk: read
Input The same object as projects.get, looked up by projectKey instead of id. Output

list

projects.list List the projects in the organization Risk: read
Input: empty object Returns { projects }, each one { id, pname, pkey, archived }. pkey is the prefix used in issue numbers such as LGC-12. Output

templates

projects.templates List the project templates available for new projects Risk: read
Input: empty object Lists the templates that project add accepts, each with a code. Output

Sprints

get

sprints.get Get one sprint by id Risk: read
Input Answers one sprint by id. Output

list

sprints.list List a project sprints with per-issue-type counts Risk: read
Input A POST with projectId in the body. Each sprint carries startDate and endDate in epoch milliseconds plus issueTypeCountMap, which groups its issues by type. Output

Tags

list

tags.list List the tags defined in a project Risk: read
Input Returns { tags }, each one { id, tagName }. Output

Workflows

list

workflows.list List the workflow steps a project uses Risk: read
Input A POST with projectId in the body, listing the workflow steps a project uses. Output

nextStates

workflows.nextStates List the states an issue can move to from its current one Risk: read
Input Needs all three of projectId, stateId and defId: Leiga answers a bare state id with code 100 "defId should not be null" on HTTP 200. defId is the workflow id, which issues.types reports as workflowId, and stateId is one of that workflow’s states entries. Output