summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/incidents/graphql/queries/get_count_by_status.query.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/incidents/graphql/queries/get_count_by_status.query.graphql')
-rw-r--r--app/assets/javascripts/incidents/graphql/queries/get_count_by_status.query.graphql9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/incidents/graphql/queries/get_count_by_status.query.graphql b/app/assets/javascripts/incidents/graphql/queries/get_count_by_status.query.graphql
new file mode 100644
index 00000000000..0b784b104a8
--- /dev/null
+++ b/app/assets/javascripts/incidents/graphql/queries/get_count_by_status.query.graphql
@@ -0,0 +1,9 @@
+query getIncidentsCountByStatus($searchTerm: String, $projectPath: ID!, $issueTypes: [IssueType!]) {
+ project(fullPath: $projectPath) {
+ issueStatusCounts(search: $searchTerm, types: $issueTypes) {
+ all
+ opened
+ closed
+ }
+ }
+}