Hi, I've been tasked with creating a script that will check each project for their individual user groups, and if a particular user group is within that project then do something with that project, whatever that may be, not relavent here.
My current solution is recursively step through the paginated projects and check each individual project with an API call each against that specific role, this is slow and hitting rate limiting blocks. Not overly an issue as I could always add some time between the requests, albeit slowing the execution down, but would like to check if there is a better method of acheiving this first before making that step.
Let me know if you require more information
Groups are added to project roles, so are you checking the roles used by users on the project or you're keen on the roles or groups on the permission scheme? Although for any API call to Jira, it is good you limit your request to 2 concurrency per minute as you won't be able to increase it any further even if you tried as there are rate limiters on cloud instances to avoid disruption of services.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events