summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/alert_management/graphql/mutations/alert_set_assignees.mutation.graphql
blob: 5008bfa5e1b21b41f200c377f1cd02a5dfce8fc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import "../fragments/alert_note.fragment.graphql"

mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $iid: String!) {
  alertSetAssignees(
    input: { iid: $iid, assigneeUsernames: $assigneeUsernames, projectPath: $projectPath }
  ) {
    errors
    alert {
      iid
      assignees {
        nodes {
          username
          name
          avatarUrl
          webUrl
        }
      }
      notes {
        nodes {
          ...AlertNote
        }
      }
    }
  }
}