Skip to content

Added get_page_id() and get_page_by_title() method for Cloud using V2 API - #1680

Open
dskdata wants to merge 1 commit into
atlassian-api:masterfrom
dskdata:fix/server_get_page_id
Open

Added get_page_id() and get_page_by_title() method for Cloud using V2 API#1680
dskdata wants to merge 1 commit into
atlassian-api:masterfrom
dskdata:fix/server_get_page_id

Conversation

@dskdata

@dskdata dskdata commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Add Confluence Cloud V2 support for looking up a page by its space key and title.

  • Added get_page_by_title() to ConfluenceCloud.
    • Resolves the supplied space key to a space ID.
    • Queries the Cloud V2 pages endpoint using the space ID and page title.
    • Requests a maximum of one matching page.
    • Preserves the legacy {"results": [...]} response shape for compatibility.
  • Added get_page_id() to return the ID of the first matching page.
  • Added support for the optional body_format and pagination-related arguments through get_page_by_title()

Compatibility

  • Existing V2 methods and response formats are unchanged.
  • The new methods are compatible with callers that previously expected a V1-style results collection.
  • No credentials or environment-specific configuration are included.

Validation

Manually validated against Confluence Cloud using:

result =confluence_client.get_page_by_title("SPACE_NAME","PAGE_NAME")

page_id  = confluence_client.get_page_id("SPACE_NAME","PAGE_NAME")

Which returned expected page and page ID.

#1658 Finally, this PR aims to solve this open issue #1658

@dskdata
dskdata force-pushed the fix/server_get_page_id branch from 8b77cee to 8998df9 Compare September 12, 2026 11:51
@dskdata dskdata changed the title Added get_page_idand get_page_by_title method for Cloud using V2 API Added get_page_i() dand get_page_by_title() method for Cloud using V2 API Sep 12, 2026
@dskdata dskdata changed the title Added get_page_i() dand get_page_by_title() method for Cloud using V2 API Added get_page_id() and get_page_by_title() method for Cloud using V2 API Sep 12, 2026
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

Successfully merging this pull request may close these issues.

1 participant