Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add label parameter to get_all_spaces method #1410

Open
frankiedrake opened this issue Jun 5, 2024 · 2 comments
Open

Add label parameter to get_all_spaces method #1410

frankiedrake opened this issue Jun 5, 2024 · 2 comments

Comments

@frankiedrake
Copy link

frankiedrake commented Jun 5, 2024

There's a possibility to get all spaces by a specified label in the Confluence Rest API, but it's impossible to do this via SDK right now. As a workaround I use the following:

confluence.get('rest/api/space', params={'label':'service', 'start':0, 'limit':500})

but would be nice to have it directly in get_all_spaces method, or, maybe even better, to have some **kwargs that will be passed as a uri query.
I don't have full understanding on what these labels are (b/c I have a Confluence admin who manages it), but I can see them this way (Categories section)
image

@frankiedrake
Copy link
Author

I can make a PR if you whish :)

@gonchik
Copy link
Member

gonchik commented Jun 7, 2024

@frankiedrake sure! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants