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

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

0 votes
Answer 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 Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

555 views 15 18
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