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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to search value which stored by the status macro?


Sometimes I am using the status macro in my confluence pages.

Here the example


If I am trying to do the search this is page couldn't be found.

If I use CQL, the result will be with the pages which are withe macro, but not with the value which I wanted


Is there some ways to find values in the status macro?


2 answers

0 votes
Diego Atlassian Team Aug 23, 2019

Hello there Aleksandr!
We can use CQL and REST API to find the desired content. We can find the desired content on the page body itself.
Our query can look into the storage format and search for the desired string within your content, Aleksandr. This should work regardless of what we are looking for because we will look into the storage format, not the macro as a rendered product.

For this, we will need some REST API:

and also Advanced CQL search:

The request should look like this:

curl --request GET \
--url '{cql}' \
--user '' \
--header 'Accept: application/json'

You will need API Tokens for that. Here is your documentation for it:

API Tokens are used as a mean of authentication for our Cloud platform when you are dealing with scripts or any other Cloud process.

Let us hear from you Aleksander!

Hi, @Diego . 

1. I need search result in the Confluence, I don't want to use REST API 

2. I wrote, I have the script 


And unfortunately no any information in the Advanced Search Reference, how can I search values in the status messages

Only that example which also gives me result only with the pages where status macro used.

macro = status

As I am understanding for now there are no any possibility to search pages with the values in the status page macro inside. This is sad, because now I have to edit so many pages and insert standard text instead of status page macro. Finally it works that rendered value can not be found.

If I look into the rendered output HTML-code, I can see my message inside.

<span class="status-macro aui-lozenge aui-lozenge-complete conf-macro output-inline" data-hasbody="false" data-macro-name="status" data-macro-id="d828d53d-cd70-4650-886d-2b26fb7e2b03">THIS IS THE TEST STATUS MACRO</span>




Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

454 views 24 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you