Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Published in Marketplace Apps & Integrations

Why you should move agile planning to Lucidspark’s digital whiteboard

During my 17 years as a coach, mentor, and trainer of Agile teams, I’ve participated in hundreds of Agile planning meetings. The end result was a wall of backlog items annotated by an explosion of co...

102 views 0 5
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