summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/incidents/graphql/queries/get_count_by_status.query.graphql
blob: 4e44a506c4fa589eb925df5ccf9b359d37aa2859 (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 = ""
  $assigneeUsername: String = ""
) {
  project(fullPath: $projectPath) {
    issueStatusCounts(
      search: $searchTerm
      types: $issueTypes
      authorUsername: $authorUsername
      assigneeUsername: $assigneeUsername
    ) {
      all
      opened
      closed
    }
  }
}