Forums

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

How to exclude "expand, startAt, maxResults, total" from the query result

Hello there !

I have the following query: https://accnetopt.atlassian.net/rest/api/2/search?jql=project=IC AND status = "En Analisis OM" OR status = "En Ajuste OM" &fields=created,issuetype,key,summary,customfield_10048,customfield_10029,status&maxResults=1

This is the result:

1.png

I just want to get all starting by the "issues" field.

Is that possible?

Thanks in advance!

2 answers

1 accepted

1 vote
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
June 3, 2021

Hi @Alex Sebastián Oyazún Figueroa welcome on the community. I don't think you can do it. These are properties which allow pagination of the data.

What is your exact usecase? Why do you need to remove these attributes?

@Martin Bayer _MoroSystems_ s_r_o__ thanks for your answer.

Firstly, i make a query to get the results (330)

Then i make all the needed querys to get all rows (Using startAt) (0 - 100, 100 - 200, 200 - 300, 300 - 400).

Then with a PHP script, i'm having problems to foreach the array to get this keys values:

1.png

 

I thought, deleteing the first part it would be easier to reach that. maybe im wrong :/

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
June 4, 2021

Ok, I don't know PHP, but you can access nested elements for sure. I found some stackoverflow topic for PHP:

https://stackoverflow.com/questions/22278419/how-do-i-access-nested-arrays-from-a-json-decode-in-php

0 votes
Prince Nyeche
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.
June 4, 2021

I don't think you can do that. It's standard response. Why do you need to exclude it?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events