Update Test case status using ZAPI

Hello,

I know that this question has been asked before but none of the solutions worked for me. Documentation did not help either.

I have a simple task to do. Change the status of the test case - PASS or FAIL using ZAPI.

 

I went through the following links. But problem was not solved -

https://getzephyr.docs.apiary.io/#reference/executionresource 

https://support.getzephyr.com/hc/en-us/sections/200565819-Developer-Zone-ZAPI

https://community.atlassian.com/t5/Marketplace-Apps-questions/How-to-update-the-execution-status-of-Test-type-issues-and-test/qaq-p/105272

 

Now, in the above  thread it was suggested that - Use Get all executions by Issue ID API which gives all executions of that issue with id's as result.

GET - http://localhost:8080/rest/zapi/latest/execution?issueId=113884

Now, where did we get the this number 113884 ?

 

I also executed -

PUT - https://aabirdaneshyar.atlassian.net/rest/zapi/latest/execution/0001515342980260-242ac112-0001/execute

Body:

{
"status": "1"
}

But got 403 Forbidden. 

 

Can anybody please help me out on this.

 

Thanks

 

 

2 answers

Hi aabir.daneshyar@optimusinfo.com,

I meet the same problem as you, did you get your problem resolved. If yes could you share it to me? Thanks a lot.

Cheers,

Michael

Finally I figured out.  

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

830 views 2 9
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