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# jira: the jira object that will be used to create the Test.
10# Check this Jira endpoint for more information related with this field.
11createPrecondition(preconditionType: UpdatePreconditionTypeInput, definition: String, testIssueIds: [String], jira: JSON!): CreatePreconditionResult
12
13}

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
    }
}