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"

https://jira.autodesk.com/rest/zapi/latest/execution/{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.

Thanks

ZephyrSupport

Suggest an answer

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

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

62 views 4 0
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