How to delete test steps from zephyr using ZAPI: I have written following code:

issueID is issueid/teststepIDfunction delete_from_zephyr_teststeps($issueID)
{    $ch = curl_init();        curl_setopt_array($ch, array(                CURLOPT_POST => "DELETE",                CURLOPT_URL => JIRA_URL . '/rest/zapi/latest/teststep/' . $issueID,                CURLOPT_USERPWD => 'USERNAME'. ':' . 'PASSWORD',
                //CURLOPT_PROXY => '',                CURLOPT_HTTPHEADER => array ('Content-Type: application/json'),                CURLOPT_RETURNTRANSFER => true,                CURLOPT_SSL_VERIFYPEER => false,

        ));        $result = curl_exec($ch);        $res_err = curl_error($ch);
        if ($res_err) {                echo "cURL error: $res_err";                                                                      
        } else {              echo "cURL response: $result";
        }        curl_close($ch);
        return json_decode($result);

I am getting proper response from zephyr but test steps are not getting deleted.
I have checked, i have admin permission to delete issue as well.

0 answers

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

358 views 0 6
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