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 => '10.68.248.34:80',                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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

461 views 3 17
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