debian-mirror-gitlab/app/assets/javascripts/incidents/graphql/queries/get_incidents.query.graphql

55 lines
1 KiB
GraphQL
Raw Normal View History

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