It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Mahesh Gadagi Sep 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 Oct 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

167 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you