OBJECT

addDefectsToTestRun

link GraphQL Schema definition

1Mutation addDefectsToTestRun {
2
3# Mutation used to add defects to a Test Run.
4#
5# Arguments
6# id: the id of the Test Run.
7# issues: the ids or keys of the defects to add to the Test Run.
8addDefectsToTestRun(id: String!, issues: [String]!): AddDefectsResult
9
10}

link Example

The mutation below adds 2 defects to the Test Run.

mutation {
    addDefectsToTestRun( id: "5acc7ab0a3fe1b6fcdc3c737", issues: ["XRAY-1234", "12345"]) {
        addedDefects
        warnings
    }
}