Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,799
Community Members
 
Community Events
176
Community Groups

Get particular paragraphs on the Confluence page

Hello, 
I have a Confluence page with 3 sections. Inside each section, the link to the Jira ticket can be added.
My task is to check each section for updates and if there are any I have to retrieve the titles.
Attaching the template of the page.

I've tried to call the endpoint below, but the response is very big.
url = "https://domain-name/confluence/wiki/rest/api/content"

I've also tried to call this, but the response is again too big:
If I use https://atlassian-python-api.readthedocs.io/confluence.html#page-actions  and try to call:
confluence.get_page_properties(page_id)
I'm not getting  enough info
I'm wondering if something from here will be useful, but I don't have space key: https://docs.atlassian.com/atlassian-confluence/REST/6.6.0/#content-getContent

Looking forward for someone's reply.
Thanks

 

 

1 answer

Hi @Galina Grudinina ,

Instead of calling all pages in Confluence via "https://domain-name/confluence/wiki/rest/api/content" you can try to limit the results by searching for keywords or labels using CQL (Confluence Query Language) like below: 

https://domain-name/confluence/wiki/rest/api/content/search?cql=text%20~%20"advanced%20search"%20AND%20label=docs

It will search for pages having "docs" as label and text "advanced search" in its body. Hope this helps!

 

-- Ziana

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events