Use Zapi to update the executed by and execution date

When updating test results to my cycle/test execution through zapi I would like to update the status, executedOn with the time my test finished and executedBy with a user name of the automated user.

The status updates correctly, however the executedOn does not. The HTTP response is 200. Is the executedOn field writeable? It seems that it changes only when the status field is changed. I would like to have the executedOn reflect the value in the test result log if possible. Is this the correct api?




curl -ujhordes:Welcome123 --include --header "Content-Type: application/json" \

--request PUT \

--data-binary "{

\"status\": ${status} , \

\"executedOn\": ${executedOn} }" "http://slc03sgh:8080/rest/zapi/latest/execution/${id}/execute"

1 answer

Hello Jan,

This question has been answered for you through our support portal. Here is the answer that was shared with you "The 'executedOn' and 'executedBy' fields are generated by the system when the status is changed. There is no call that allows these fields to be modified. As a workaround for your need, you may put additional execution information in the comment of the execution, which users can view when clicking the 'E' button for the execution".

Kind Regards,

Swapna Kumar Vemula.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 54m ago in Agile

How Scrum works? It starts with training and education

To answer “How scrum works,” most of the teams I've worked with first addressed the question: “where to start?”  That question applies to both implementation and improvements on the Scrum framew...

20 views 0 0
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you