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

1 answer

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.



Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted 4 hours ago in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

18 views 1 2
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot