Forums

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

Xray doesn't have CreateDefect GRaphQL ? it has CreateTest and other not CreateDefect

AR
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 24, 2025

Hi,

 

May i know the reason why Xray doesn't have Graphql to createDefect, but has addDefectstoTestRun - without creating Defect , there is no point to add Defect to Test Run.

If Defect need to be created using parent JIRA screen - then new set of credentials should be needed.. that like sharing two set of creds one for JIRA and another for Xray,

 

Is there is a way to create defect using Xray creds?

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Francisco Fonseca _Xray_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2025

Hi @AR

Welcome to the Community!

You’re absolutely right to highlight this gap. Xray doesn’t support creating defects via GraphQL because defects are native Jira issues, not Xray managed entities.

Xray GraphQL API documentation, the addDefectsToTestRun mutation lets you link existing Jira issues to a test run, but doesn’t allow creating them since that’s handled by Jira’s own issue creation process.

That said, I’ve created a product suggestion for this feature, which you can vote and watch here.

Best,
Francisco

TAGS
AUG Leaders

Atlassian Community Events