Confluence API-获取父母的子页面也按日期范围过滤
我正在尝试从父页面上获取所有子页面,并尝试在日期之前获得过滤结果。
我正在尝试以下查询,但它丢弃了所有子页面,但并未在提供的日期范围内显示结果。
api端点:
在结果中,我看到了孩子页面,但我也看到了2021年之前创建的页面
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的查询几乎是对的,您只需使用
<
和>
即可过滤日期。例如,以下(Python)请求对我有用:
只需确保您的URL编码正确即可。编码,它应该看起来像:
/concu/rest/api/content/搜索?
您可以在此处找到文档: https://developer.atlassian.com /server/Confluence/Advanced-Searching-使用CQL/
Your query is almost right, you just have to use
<
and>
to filter your dates.For example, the following (Python) request works for me:
Just make sure your URL encoding is correct. Encoded, it should look like:
/confu/rest/api/content/search?cql=parent%3D207377670%20and%20created%3E2021-01-01%20and%20created%3C2022-12-11
You can find documentation here: https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/