Forums

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

XRay - Problem with Test Execution Importing

Karel Vrabka
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!
January 30, 2023

Hello,

I got a problem with importing Test Execution into Jira via Jira Xray REST API, my simplified JSON looks like this

{
"info": {
"startDate": "2023-01-30T07:45:13+0000",
"finishDate": "2023-01-30T07:45:13+0000"
},
"tests": [
{
"testKey": "STREAM-1457",
"status": "PASS",
"comment": "Comment"

}
],
"testExecutionKey": "STREAM-2185"
}

I am posting it to /rest/raven/2.0/import/execution endpoint and I get in response status 400 with this message: 

customfield_13625: customfield_13625;customfield_13615: customfield_13615;customfield_13618: customfield_13618;customfield_13617: customfield_13617

I really don't know what I am doing wrong, because this solution worked for more then a year, but suddenly failed last week and I have not been able to fix it. And the response text is really not particularly helpful.

Could you please tell me what is the problem with my request?

Thank you. :)

1 answer

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 30, 2023

Hi @Karel Vrabka -- welcome to the community,

Did you check the fields from the response:
customfield_13625: customfield_13625;customfield_13615: customfield_13615;customfield_13618: customfield_13618;customfield_13617: customfield_13617

Which fields are those? Could there be some change in fieldConfig that those fields might be eg. required now?

Best
Stefan

Karel Vrabka
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!
February 1, 2023

Hello, thank you for your reply. It turned out to be accidental change in implementation by server admins.

It is solved now.

Like • Stefan Salzl likes this
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 2, 2023

Hi @Karel Vrabka 

great to know it´s working now. Please consider to hit the "Accept Answer" button in order to mark this post as sloved and may help other users finding the solution.

Best
Stefan

Like • Karel Vrabka likes this

Suggest an answer

Log in or Sign up to answer