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?

id='188'

status='1'

executedOn="140409"

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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

150 views 16 7
Join discussion

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