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. Will associate the default Test versions. Cannot be used with tests.
9# tests: the Test versions to be associated with the Precondition. Cannot be used with testIssueIds.
10# folderPath: the Test repository folder for the Precondition.
11# jira: the jira object that will be used to create the Precondition.
12# Check this Jira endpoint for more information related with this field.
13createPrecondition(preconditionType: UpdatePreconditionTypeInput, definition: String, testIssueIds: [String], tests: [TestWithVersionInput], folderPath: String, jira: JSON!): CreatePreconditionResult
14
15}

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