How to add results with "startedOn" and "finishedOn" to a Test Run?

Timo Vortmeyer November 20, 2020

Hi!
I tried to add a result to a new Test Run with XRay API using the following command:

curl -u "USER:PW" -k -H "Content-Type: application/json" -X PUT --data "{\"status\":\"PASS\",\"executedBy\":\"USER\",\"startedOn\":\"2014-08-30T12:47:35+02:00\",\"finishedOn\":\"2020-11-18T12:09:49+01:00\"}" https://JIRA-SERVER/rest/raven/2.0/api/testrun/2132

The test status is changed as expected. But the dates in the fields "startedOn" and "finishedOn" deviate. When I do a GET

curl -u "USER:PW" -k -H "Content-Type: application/json" -X GET https://JIRA-SERVER/rest/raven/2.0/api/testrun/2132

the fields contain the current date

[...]
"startedOn": "2020-11-20T12:37:48+01:00",
"finishedOn": "2020-11-20T12:37:48+01:00",
"startedOnIso": "2020-11-20T12:37:48+01:00",
"finishedOnIso": "2020-11-20T12:37:48+01:00",
"duration": 0,
[...]

 Is there any way to use this API call to use my own values?

1 answer

0 votes
Timo Vortmeyer December 10, 2020

Any ideas regarding this issue?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events