Forums

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

GET with specific fields

Guilherme Pacheco Alano
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!
January 14, 2022

Hi, I'm trying to do a get via webhook but I need to filter the fields.

I'm following this page:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get

The URL I'm calling via API would be this:
https://corporation.atlassian.net/rest/api/3/search?jql=project%20%3D%20%22HP%22%20and%20updated%20%3E%3D%20%2D1h%20order%20BY% 20created%20DESC"

Where I'm running a JQL to filter the last minute ticket, but the query returns all the fields linked to the ticket.

How would it be to filter the fields together in this URL?

1 answer

1 vote
Ankit Gupta January 17, 2022

Hi, you can use the `fields` query parameter to only get the fields you are interested in. For e.g: `fields=summary,comment`


Check the documentation for `fields` parameter for the complete usage.

Suggest an answer

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

Atlassian Community Events