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
Lists the fields one issue type exposes, including the custom fields that appear in an issue’s
customFieldData.
Output
fields full type
fields full type
get
issues.get
Get one issue by id, with its fields and tags
Risk: read
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
assigneeVO full type
assigneeVO full type
createByVO full type
createByVO full type
updateByVO full type
updateByVO full type
getByNumber
issues.getByNumber
Get one issue by its human-readable number, such as LGC-12
Risk: read
Looks an issue up by its human-readable number, such as
LGC-12.
Output
assigneeVO full type
assigneeVO full type
createByVO full type
createByVO full type
updateByVO full type
updateByVO full type
list
issues.list
Query the issues in a project, with filters and paging
Risk: read
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
issues full type
issues full type
types
issues.types
List the issue types a project offers, such as bug or task
Risk: read
Lists the issue types a project offers, each with an
id, code and name.
Output
issueTypes full type
issueTypes full type
Members
list
members.list
List the members of a project with their roles
Risk: read
A GET with
projectId and an optional keyword filter, answering each member with their departments and project roles.
Output
members full type
members full type
Projects
get
projects.get
Get one project by id, with its metadata
Risk: read
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
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
{ projects }, each one { id, pname, pkey, archived }. pkey is the prefix used in issue numbers such as LGC-12.
Output
projects full type
projects full type
templates
projects.templates
List the project templates available for new projects
Risk: read
project add accepts, each with a code.
Output
templates full type
templates full type
Sprints
get
sprints.get
Get one sprint by id
Risk: read
Answers one sprint by id.
Output
list
sprints.list
List a project sprints with per-issue-type counts
Risk: read
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
sprints full type
sprints full type
Tags
list
tags.list
List the tags defined in a project
Risk: read
Returns
{ tags }, each one { id, tagName }.
Output
Workflows
list
workflows.list
List the workflow steps a project uses
Risk: read
A POST with
projectId in the body, listing the workflow steps a project uses.
Output
workflows full type
workflows full type
nextStates
workflows.nextStates
List the states an issue can move to from its current one
Risk: read
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
states full type
states full type