summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/incidents/graphql/queries/get_count_by_status.query.graphql
blob: fd96825c0f726216ed558e5c1efb82b7bd720b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
query getIncidentsCountByStatus(
  $searchTerm: String
  $projectPath: ID!
  $issueTypes: [IssueType!]
  $authorUsername: String = ""
  $assigneeUsernames: String = ""
) {
  project(fullPath: $projectPath) {
    issueStatusCounts(
      search: $searchTerm
      types: $issueTypes
      authorUsername: $authorUsername
      assigneeUsername: $assigneeUsernames
    ) {
      all
      opened
      closed
    }
  }
}