How to get data from a table stored on a wiki page?

I want to create a table on a WIKI page containing data and then pull data out of this table to use on other WIKI pages within the same space. I have created my table page using the table-data macro but cannot figure out how to pull data from it.

Anyone know how to do this or have a reference they can point me to?

Thanks!

5 answers

This widget could not be displayed.

If you only want to pull out selective information from the table (for example, one row, or one cell in a row), then you could use jQuery.

This widget could not be displayed.

If that table is the only one in the page, you can use the include page macro.

https://confluence.atlassian.com/display/DOC/Include+Page+Macro

This widget could not be displayed.

I don't want to replicate the table on other wiki pages, I want to selectively pull data out of table cells to display on other wiki pages.

For example, each row contains dates for a project. There will be unique project wiki pages that I want to be able to reference dates stored in a master table containing dates for all projects. This way only the master table needs to get updated and the individual project wiki pages will update based on values in the table.

jQuery is not a macro we have installed with out confluence WIKI so unfortunately that is not an option.

I tried using the get-data macro but I am not sure how to reference the cells in the table with it nor do I know if it will work across pages.

In a simple experiment I did the following all on same WIKI page:

{set-data:test_field|type=text}pickle

{get-data:test_field}{get-data}

In this example get-data retrieves "pickle". But I was not able to use get-data on another WIKI page to retrieve the test_field value.

I cannot find much info that details out how field data is handled, what is local to a page versus global to a space, how to address fields, etc.

If anyone knows how to pull data from one page to another, I would really appreciate it.

Thanks!

This widget could not be displayed.

When I try to use jQuery by putting {jQuery} on page, I get an unknown macro message. Not listed in macros I can insert either when using rich text edit mode with toolbar.

This widget could not be displayed.

I think you're trying to do something that Confluence/static HTML is not meant to do.

That being said, are you sure you can't use jQuery? It's built in by default. If you have the HTML macro enabled, you can use it.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

137 views 12 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you