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

Can you embed a REST API response in Confluence wiki content?

I'm looking for a way to quickly embed some plain text output from a REST API (TeamCity) in a Confluence wiki page. I can't use the html-include macro, as it expects html and throws an error otherwise. The lone plugin that seems relevant hasn't been updated since many Confluence releases ago. I don't want to use the plugin or the TeamCity build status widget. I just need a little data from the server to sprinkle onto the page content I already have. Is there no way to just include the raw output from a URL regardless of its response type?

1 answer

1 accepted

At a minimum, you can script it - Script Plugin for Confluence. Or you could treat the data returned as csv and use the CSV macro with the url.

I went with the CSV and it worked great Bob, thanks! All I needed was the url attribute with the macro.

Could you please share the sample code Troy

Like # people like this

Hey sorry for the delay! Took me a while to find the code.

I went a different path after the CSV macro went paid (not that I didn't like the add-on, the functionality just wasn't important enough for the price given our seat count).

But if you have the add-on, use it like so:


Which would return the build number of the most recent successful "dev" build.

Hope this helps.

Troy - which alternate route did you go with? (non-paid). Thanks in advance.

Like # people like this

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...

408 views 23 8
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