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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

Get value of macro from statusbar via REST Edited

Hi all,

I am trying to write a program that shall collect data from a statusbar (a table combining information like ID, version, status). I can get the content of the whole page via REST, can identify the table defining the statusbar, get the table headers - but I have some issues with getting the values for each field.

 

Each field in the status table looks like this in the confluence storage format

<td>
<div class="content-wrapper">
<p><ac:structured-macro ac:name="reqinfo" ac:schema-version="1" ac:macro-id="123456789-abcde"><ac:parameter ac:name="property">Modified By</ac:parameter></ac:structured-macro></p></div></td>

 

'for this example, the value displayed when viewing the page would be a user name. Is it possible to get the user name hidden in the macro above based on the confluence storage format / export via REST?

Thanks!

1 answer

1 accepted

Hi @ankeli,

have you tried adding the parameter "&expand=body.view" to your REST url? This should give you the rendered version.

If you can't do that you could also send the relevant storage format to the convert content body REST API to render it.

Hope this helps! :)

Cheers,
Sven

Thanks, that helped.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

536 views 7 20
Read article

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