Zapi call returns all “issues of type Test” from all the projects
Problem
Zapi call to fetch Tests from a particular project instead returns Tests from all the projects.
Cause
Passing currentProjectId as binary data (payload) instead of passing it as a query parameter. The user used the below format.
curl -i -k -X GET https://jira.yourcompany.com/rest/zapi/latest/issues –header “Authorization: Basic XXX” –header “Content-Type: application/json” –data-binary ‘{“currentProjectId”: 10000}’
Fix
Please pass the currentProjectId as a query parameter.
curl -i -k -X GET https://jira.yourcompany.com/rest/zapi/latest/issues?currentProjectId=10000 –header “Authorization: Basic XXX”
Knowledge Base Document Information:
-—————————————————————————————————
Title: Zapi call returns all “issues of type Test” from all the projects.
Product: Zapi
Version: All
Summary: Zapi call to fetch Tests from a particular project instead returns Tests from all the projects
-—————————————————————————————————