Forum Discussion

MBN's avatar
MBN
New Contributor
5 years ago
Solved

Zephyr: problems in retrieving list of executions

Hello,

I need to retrieve the list of test cases (executions) assigned to a project/version.

I'm using this API call:

jira/rest/zapi/latest/zql/executeSearch?zqlQuery=project='xxxx' AND fixVersion='yyyyy' AND cycleName='zzzz' AND folderName='wwww'

 

In some cases, I'm getting 0 records even if records are present in the test cycle.

 

Is this the correct API to use?

 

Thank you.

  • Hi There,

     

    Here is a valid sample request for parsing the request for any ZQL query via api.

    /rest/zapi/latest/zql/executeSearch?zqlQuery=project = "AV" AND fixVersion = "IOS10" AND cycleName in ("Chrome") AND folderName in ("apple1") AND fixVersion = IOS10

     

    It looks like you are nou using IN clause <folderName in ("apple1")>

     

    Regards,

    Bibek

     

     

2 Replies

  • BibekBehera's avatar
    BibekBehera
    SmartBear Alumni (Retired)

    Hi There,

     

    Here is a valid sample request for parsing the request for any ZQL query via api.

    /rest/zapi/latest/zql/executeSearch?zqlQuery=project = "AV" AND fixVersion = "IOS10" AND cycleName in ("Chrome") AND folderName in ("apple1") AND fixVersion = IOS10

     

    It looks like you are nou using IN clause <folderName in ("apple1")>

     

    Regards,

    Bibek