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

 

 

3 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.  

Arun VS I'm New Here Jul 24, 2018

How?

0 votes

Hi Michael,

Can you please share the steps for updating the test case status using ZAPI over cloud.

I am using the trial version of Zephyr and ZAPI in Jira.

Thanks,

Karan

Hi KumarKaran,

Did you find out the way to update the test case status.

As I know we can't update for trial version of Zephyr using ZAPIs.

Thanks,

Bharadwaj.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

412 views 0 3
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