Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.