Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,286
Community Members
 
Community Events
165
Community Groups

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

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

Any ideas regarding this issue?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

381 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you