Hello,
I'm trying to automate tasks with Python using the different APIs, the Jira and Confluence APIs don't cause me any problems, however to configure Jira projects with XRay, I have to use GraphQL and there, it gets stuck.
I know how to do Query, Mutation, no worries it works.
However, I don't understand how to use Object Types.
I need to use these GraphQL objects::
type ProjectSettings {
projectId: String
testEnvironments: [String]
testCoverageSettings: ProjectSettingsTestCoverage
defectIssueTypes: [String]
testTypeSettings: ProjectSettingsTestType
testStepSettings: ProjectSettingsTestStepSettings
testRunCustomFieldSettings: ProjectSettingsTestRunCustomFields
}
type ProjectSettingsTestCoverage {
coverableIssueTypeIds: [String]
epicIssuesRelation: Boolean
issueSubTasksRelation: Boolean
issueLinkTypeId: String
issueLinkTypeDirection: String
}
I'm using gql with python, doc here
Here is the result of the getProjecSettings query, showing the configured Jira/Xray project
The same values should be used with ProjectSettings and ProjectSettingsTestCoverage to configure all projects, except for the projectId key
Thanks for the help