How to get only selected fields from Zephyr for JIRA Rest API Response

mvgadagi September 28, 2017

Can anyone please help me in getting only selected columns from the ZQL Query

When I run the below API , I am getting all the the columns such as

 

https://server/rest/zapi/latest/zql/executeSearch?zqlQuery=project="My Project"&filterId=&offset=&maxRecords=&expand=

 

Columns Reflecting as below, But Here I just wanted to get only id and status filed, How I can achieve this , Can someone help here

 

{
  "id": 1,
  "orderId": 23,
  "cycleId": 6652,
  "cycleName": "Reg",
  "issueId": "55",
  "issueKey": "2566",
  "issueSummary": "Test",
  "labels": [],
  "issueDescription": "<p>Description</p>",
  "projectKey": "Key",
  "projectId": 12151,
  "project": "My Project",
  "projectAvatarId": 232,
  "priority": "Unprioritized",
  "components": [],
  "versionId": 21291,
  "versionName": "8.0 - Red Bud",
  "status": {
    "id": -1,
    "name": "UNEXECUTED",
    "description": "The test has not yet been executed.",
    "color": "#A0A0A0",
    "type": 0
  }

 

1 answer

0 votes
Arun Ravindran October 30, 2017

Hi Mahesh

Thanks for your interest in Zephyr.Please note we cant restrict the response fields via API as we do in UI and the response remains standard for each type of request

Currently there is no other way but parse the results as per your requirement

Thanks

ZephyrSupport

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events