Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to construct a rest query for these fields

Yusuf Rawat July 4, 2020

This returns results , but i need these fields

 

https://XXXX.atlassian.net/rest/api/3/search?jql=project=FBDVQS

 

Issue Type
Issue key
Issue id
Summary
Status
Reporter
Created
Custom field (Start Date)
Custom field (End Date)
Project Category
Resolved
Due date
Custom field (Tech Impact)
Custom field (Requesting Business Area)
Custom field (Request Category)
Custom field (Func Pri)
Custom field (RT Priority)
Custom field (CAP Priority)
Custom field (Linked Project)

1 answer

1 accepted

0 votes
Answer accepted
Italo Qualisoni [e-Core]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2020

Hey @Yusuf Rawat ,

You should use fields parameter in your Rest

https://XXXX.atlassian.net/rest/api/3/search?jql=project=FBDVQS&fields=issuetype,summary,status,created...

 

You can't use the customfield name, you will use the customfield_ID instead. Imagine that Tech Impact is customfield_10510, then your request will be :

https://XXXX.atlassian.net/rest/api/3/search?jql=project=FBDVQS&fields=issuetype,summary,status,created,customfield_10510...

 

You can check the documentation here: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-search-get

yusuf rawat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2020

How do I mark your answer as correct 

Italo Qualisoni [e-Core]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2020

Great that it worked, you should have a green button "Accept answer" near my first comment

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events