Forums

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

setting custom field in Test Run with Xray Rest API 2.0

Alina Nedelciu
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!
September 15, 2022

I am using the Xray Rest API 2.0 to import test results (/import/execution) with the JSON format. 

When trying to import with a custom field in the JSON I get an error (even though the custom field ID exists on the test - I checked with the /rest/api/2/issue/{issuekey}/editmeta endpoint).

 

    "customFields": [
    {
        "id"14320,
        "value""Automated Execution"
    }
    ]

 

Error:

   "error": "Test Run Custom Field 14320 not found for Test Run or has been deleted."

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events