Comments (5)
Maybe something like this?
projects = self.paginated_projects(
included_archived=included_archived,
expand=expand,
)
is_last_page = projects.get("isLast")
next_page_url = projects.get("nextPage")
while not is_last_page:
next_page_projects = self.paginated_projects(
included_archived=included_archived,
expand=expand,
url=next_page_url,
)
next_page_url = next_page_projects.get("nextPage")
is_last_page = next_page_projects.get("isLast")
projects["values"].extend(
next_page_projects["values"]
)
return projects["values"]
from atlassian-python-api.
I experienced this behavior too, this is a pretty bad bug. I don't think it is that unusual to have more than 50 projects. Rolled back to previous version for now.
from atlassian-python-api.
I've just run into this myself, we have just a bit over 50 projects currently and trying to get projects from Cloud never returns with the current release.
I've pinned the version before the PR was merged (atlassian-python-api==3.41.3
) and was able to retrieve the project list. So far I haven't run into issues with using an older version, but it would be nice if this was fixed to actually work without needing to do this, as it's possible we'll run into a problem at some point.
from atlassian-python-api.
The usage of the paging in Jira is done in a different way than in . There is an issue from Atlassian still open which looks the same and has already a workaround implemented for BitBucket:
atlassian-python-api/atlassian/bitbucket/cloud/base.py
Lines 85 to 86 in 0a5bc5e
This code should be copied to Jira module and adapted there.
from atlassian-python-api.
Can someone test https://github.com/Spacetown/atlassian-python-api/tree/jira_add_get_paged?
from atlassian-python-api.
Related Issues (20)
- bamboo.activity() returns 404 HOT 1
- JIRA: Missing error msg
- [confluence] SSLerror and 401 HOT 2
- BUG: Documentation https://atlassian-python-api.readthedocs.io HOT 1
- API method to check if a user has permission on a specific page/space HOT 2
- get_page_as_word is giving data in bytes for .doc format and not .docx. Do we have any method to get .docx format HOT 1
- Is there any async implenetaton?
- confluence.get_space_permissions(space_key) gives 404 HOT 1
- Parsing date-time string for pipeline.completed_on failing due to strftime issue.
- Question: is python 2.7 still supported? HOT 1
- Question: Get all commits on a specific branch HOT 1
- Max of only 500 pages are returned HOT 3
- markdown app HOT 1
- Getting and setting default reviewers in Bitbucket Server
- Assets REST API HOT 3
- Path Variables instead of Query Params in URLs
- Comma in expand query param causes issue if URL encoded HOT 2
- need a function to set the test status in in test execution HOT 1
- Confluence Cloud Python API connection Timeouts
- Jira Software - rank API available? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atlassian-python-api.