summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/incidents/graphql
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/incidents/graphql')
-rw-r--r--app/assets/javascripts/incidents/graphql/queries/get_incidents.query.graphql22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/incidents/graphql/queries/get_incidents.query.graphql b/app/assets/javascripts/incidents/graphql/queries/get_incidents.query.graphql
new file mode 100644
index 00000000000..4478aa56ee7
--- /dev/null
+++ b/app/assets/javascripts/incidents/graphql/queries/get_incidents.query.graphql
@@ -0,0 +1,22 @@
+query getIncidents($projectPath: ID!, $labelNames: [String], $state: IssuableState) {
+ project(fullPath: $projectPath) {
+ issues(state: $state, labelName: $labelNames) {
+ nodes {
+ iid
+ title
+ createdAt
+ labels {
+ nodes {
+ title
+ color
+ }
+ }
+ assignees {
+ nodes {
+ username
+ }
+ }
+ }
+ }
+ }
+}