Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,113
Community Members
 
Community Events
176
Community Groups

REST API with user pagination ineffective after Update! (Server/DC)

Edited

Hello Jira-(Server/DC-)Users,

if you use

  • Jira Server or Datacenter
    and
  • REST-Calls obtaining user lists as results

you should double check your application after Jira Core Update, if it still works as intended.

IMHO updates to Version

  • 8.20.7 or higher
  • 9.0.0 or higher (from <=8.20.6)

does affect some REST api calls - and I couldn't find an entry in the REST API-Changelog (status 2022/07/27)!

According to my research at least the following endpoints are affected:

  • /rest/api/2/user/assignable/search
  • /rest/api/2/user/assignable/multiProjectSearch
  • /rest/api/2/user/viewissue/search

In previous versions there was a Parameter startAt that allowed pagination, which has been dropped in the (minor) update!
In both, previous and current versions there is a Parameter maxResults, which limits the maximum result count in the reply - but in the new version it was hard limited to 100 (previous: 1000). IMHO you are only affected if you don't pass the parameter username some endpoints mentioned above have (in other words: if you expect list of users from the endpoint).

Problem: previously you could get up to 1000 users via this calls. After the update you silently only get 100 users at a maximum (higher values in maxResults are treated as '100') and startAt-Parameter is simply ignored now.

In the detailed changelog the 'Bugfix' which causes this problem does appear: JSWSERVER-21156

There also exists some feature requests regarding that problem: JRASERVER-71380, JRASERVER-73362

If Jira DC supports REST API V3, the problem may be also solved: Feature-Request JRASERVER-70688

 

0 comments

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events