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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.2 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 = ""
2021-01-03 14:25:43 +05:30
$searchTerm: String = ""
$authorUsername: String = ""
$assigneeUsername: String = ""
2020-10-24 23:57:45 +05:30
) {
project(fullPath: $projectPath) {
2022-01-26 12:08:38 +05:30
id
2020-10-24 23:57:45 +05:30
issues(
search: $searchTerm
types: $issueTypes
sort: $sort
state: $status
2021-01-03 14:25:43 +05:30
authorUsername: $authorUsername
assigneeUsername: $assigneeUsername
2020-10-24 23:57:45 +05:30
first: $firstPageSize
last: $lastPageSize
after: $nextPageCursor
before: $prevPageCursor
) {
nodes {
2022-01-26 12:08:38 +05:30
id
2020-10-24 23:57:45 +05:30
iid
title
createdAt
state
labels {
nodes {
2022-01-26 12:08:38 +05:30
id
2020-10-24 23:57:45 +05:30
title
color
}
}
assignees {
nodes {
2022-01-26 12:08:38 +05:30
id
2020-10-24 23:57:45 +05:30
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
}
}
}
}