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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

289 views 0 6
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