1

我正在使用 atlassian-pytho-api 版本 3.4.1。我需要创建一个我以这种方式成功制作的博客文章

confluence.create_page(space, title, content, type="blogpost")

现在,我想在特定条件下更新这篇博文,因为我需要检查这篇博文是否存在。我尝试使用

confluence.page_exists(space, title)

但它只是在 PAGES 中搜索,而不是在博客文章中,因此找不到该文章,我无法更新。有没有办法限制 page_exists 在 blogpost 而不是 pages 中搜索?

4

1 回答 1

0

我使用 CQL 搜索整个空间。

space={SPACE_NAME} and type="blogpost and title~{PAGE_TITLE}"
于 2021-05-25T06:56:26.747 回答