summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/alert_management/graphql/mutations/alert_set_assignees.mutation.graphql
blob: 63d952a485721ffed0be17fac5bdbfb8a921c75a (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 "~/graphql_shared/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
        }
      }
    }
  }
}