Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-10874

Error on creation of Test Execution issue type in a team-managed project using REST API.

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Ready for Release
    • Major
    • Resolution: Unresolved
    • Xray Cloud 13.0.0
    • Xray Cloud 17.0.0
    • GraphQL
    • None
    • Jira Cloud, Postman, Jira Automation

    Description

      Description

      While using Xray APIs in a Team-managed project, we get the following error,

       

      {"error":"Can't create Test Execution for project QG because Test Execution issue type is not configured!"}

      This happens even if the Test Execution is present in the respective project. The error happens periodically.

       

      Pre-conditions:

      Have a Team-Managed Project and include the issuetype Test Execution in it.

      How to reproduce

      1. Use GraphQL mutation to create Test Execution  or
      2. Using JUnit XML Results  REST API, which indirectly creates a Test Execution
      curl -H "Content-Type: text/xml" -X POST -H "Authorization: Bearer $token"  --data @"data.xml" https://xray.cloud.getxray.app/api/v1/import/execution/junit?projectKey=XTP 

      Actual result/Attachments

      Sometime we see the following error:

       

      {"error":"Can't create Test Execution for project QG because Test Execution issue type is not configured!"}
      

      Expected result

      As the issuetype is availble in the project, there should be an error, instead Test Execution should be created.

      Version

      • Xray Cloud 13.0.0

      Workaround N/A

      Attachments

        Issue Links

          Activity

            People

              bernardo.cottim Bernardo Cottim
              jayanthi.murthi Jayanthi Murthi
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: