How to identify the id when calling the zapi service

We are using Zephry Cloud with Zapi plugin.

I am trying to call the below service, but i am not sure how should I get the <id> ; I just have the "key": "PROJ-123"{id}/execute

2 answers

Hi Abin

Thanks for your interest in Zephyr.

You can fetch the correct execution ID by performing the following steps

  1. Retrieve all the issues of project using the JIRA Rest API. The below call should help: GET <JIRA_SERVER>/rest/api/2/search?jql=project="Your Project Key"

This should get all the issues for a given project. You can then compare the "summary" response returned with the names in your file. You can also get the Issue ID with the same call.

  1. Now use this issue id to retrieve all the executions using ZAPI.
    GET <JIRA_SERVER>/rest/zapi/latest/execution?issueId=

  2. Use the execution Id to either create a new execution or update an existing execution.

a. Create a new execution:
POST <JIRA_SERVER>/rest/zapi/latest/execution
b. Update an existing execution:
PUT <JIRA_SERVER>/rest/zapi/latest/execution/{id}/execute

Let us know if you have any queries about the above mentioned.



@Arun Ravindran Hi,

I have been trying hard to settle on things regarding ZAPI but fortunately found this thread where I saw a hope of getting some query answered. Thanks for the sequence you have explained above. I am trying to follow them but for some reason I get below error while making ZAPI calls (JIRA api calls work fine - eg <JIRA_SERVER>/rest/api/2/search?jql=project="Your Project Key")

"Sorry, we had some technical problems during your last operation.
Request assistance
Copy the content below and send it to your JIRA Administrator

Technical details
Log's referral number: a63e859c-aacb-4c6e-8d5b-f6945a8a86b6
Referer URL: Unknown

Steps I followed:

1. Made a request http://<JIRA>/rest/api/2/issue/{Story ID}

2. I got all the test cases Id, but i could see multiple ids for an item such as 

      "outwardIssue": {
                "id": "333095",
                 "key": "AI-188",

           "id": "166691",
            "self": "https://<JIRA>/rest/api/2/issueLink/166691",
           "type": {
            "id": "10240",
          "name": "Blocker",

    I don't know which Id should I refer to make a ZAPI call in the subsequent calls


3. If I take one of the id and fire a request as http://<JIRA>/rest/zapi/latest/execution/333095/execute

I get the above error "Sorry, we had some technical problems during your last operation.

Please let me know what I am missing. I have been struggling to get this working from the past week. Need good resource. Thanks in advance

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

From Atlassian: Confluence Security Advisory - 2019-03-20

Atlassian released a security advisory on 3/20/2019.  The full advisory is here: In a nutshe...

22 views 0 1
View post

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