debian-mirror-gitlab/app/assets/javascripts/incidents/graphql/queries/get_incidents.query.graphql
2022-01-26 12:08:38 +05:30

62 lines
1.2 KiB
GraphQL

#import "ee_else_ce/incidents/graphql/fragments/incident_fields.fragment.graphql"
query getIncidents(
$projectPath: ID!
$issueTypes: [IssueType!]
$sort: IssueSort
$status: IssuableState
$firstPageSize: Int
$lastPageSize: Int
$prevPageCursor: String = ""
$nextPageCursor: String = ""
$searchTerm: String = ""
$authorUsername: String = ""
$assigneeUsername: String = ""
) {
project(fullPath: $projectPath) {
id
issues(
search: $searchTerm
types: $issueTypes
sort: $sort
state: $status
authorUsername: $authorUsername
assigneeUsername: $assigneeUsername
first: $firstPageSize
last: $lastPageSize
after: $nextPageCursor
before: $prevPageCursor
) {
nodes {
id
iid
title
createdAt
state
labels {
nodes {
id
title
color
}
}
assignees {
nodes {
id
name
username
avatarUrl
webUrl
}
}
...IncidentFields
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
}
}