Forums

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

Jira Rest Api to fetch assignees giving limited result

Shivani chittauri
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!
February 25, 2023

I am currently using below rest api for non-cloud jira server to fetch assignees, it is just giving maximum 100 assignees, and pagination is also not working after 100 though many users are present.

<Base url>/rest/api/2/user/assignable/search?project=<project key>&startAt=50&maxResults=100

 

I need all the users of the jira connection, but limited users are coming.

1 answer

1 vote
Vamsi Kandala
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.
February 25, 2023

Hi @Shivani chittauri

Welcome to Atlassian community!

Unfortunately, by default, the REST API returns 50 results which can be further set to maximum of 100 using 'maxResults=100'.  We will have to use the pagination properties like 'startAt' to retrieve the other results.  So, it is better to try to narrow down your search.

Hope this helps.

Thanks,
Vamsi

Shivani chittauri
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!
February 25, 2023

Hi Vamsi

I need all the users, but this pagination is not working after 100 i.e., I can't startAt=101 and get results. Everytime it is just giving 100 users only.

<Base url>/rest/api/2/user/assignable/search?project=<project key>&startAt=101&maxResults=100
Valandriel Sun
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 21, 2023

@Shivani chittauri   That's because that particular endpoint no longer supports the >startAt< parameter. So you go with user #0 to #99 and that's it. This change broke many of our client's daily tools, unfortunately Atlassian doesn't seem to be willing to finally fix their *BS*  :-/

You may want to read for yourself:
https://docs.atlassian.com/software/jira/docs/api/REST/9.10.0/#api/2/user-findAssignableUsers

Like Steve Nguyen likes this
sakshamg
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 3, 2024

@Valandriel Sun @Shivani chittauri @Vamsi Kandala is this issue still there? Or is there a workaround for this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events