OBJECT

addTestStep

link GraphQL Schema definition

1Mutation addTestStep {
2
3# Mutation used to add a Step to a Test.
4#
5#
6# Arguments
7# issueId: the issue id of the Test.
8# versionId: the id of a Test version. If not given, will update the default Test version.
9# step: the Step to add to the Test.
10addTestStep(issueId: String!, versionId: Int, step: CreateStepInput!): Step
11
12}

link Example

The mutation below will add a new Step to the test with id "12345".

mutation {
    addTestStep(
        issueId: "12345",
        step: {
            action: "Use Xray Cloud Rest Api to add a new Step to the Test",
            result: "Step was added to the Test",
            customFields: [{id:"5ddc0e585da9670010e608dc", value:"Tokyo"}]
        }
    ) {
        id
        action
        data
        result
    }
}

The mutation below will add a new Step to the version 3 of the Test with id "12345".

mutation {
    addTestStep(
        issueId: "12345",
        versionId: 3,
        step: {
            action: "Use Xray Cloud Rest Api to add a new Step to the Test",
            result: "Step was added to the Test",
            customFields: [{id:"5ddc0e585da9670010e608dc", value:"Tokyo"}]
        }
    ) {
        id
        action
        data
        result
    }
}