OBJECT

createPrecondition

link GraphQL Schema definition

1Mutation createPrecondition {
2
3# Mutation used to create a new Precondition.
4#
5# Arguments
6# preconditionType: the Precondition Type of the Precondition issue.
7# definition: the definition of the Precondition issue.
8# testIssueIds: the Test issue ids to be associated with the Precondition issue.
9# folderPath: the Test repository folder for the Precondition.
10# jira: the jira object that will be used to create the Precondition.
11# Check this Jira endpoint for more information related with this field.
12createPrecondition(preconditionType: UpdatePreconditionTypeInput, definition: String, testIssueIds: [String], folderPath: String, jira: JSON!): CreatePreconditionResult
13
14}

link Example

The mutation below will create a new Precondition.

mutation {
    createPrecondition(
        preconditionType: { name: "Generic" }
        definition: "Turn on calculator."
        jira: {
            fields: { summary:"Turn on calculator", project: {key: "CALC"} }
        }
    ) {
        precondition {
            issueId
            preconditionType {
                name
            }
            definition
            jira(fields: ["key"])
        }
        warnings
    }
}