Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure Jira with Xray GraphQL

Denis Rousselle August 4, 2023

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

}

Xray GraphQL documentation

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

2023-08-04 (2).png

Thanks for the help

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events