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

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

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
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

302 views 0 1
Read article

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