Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get status of external system and display on Confluence page

Andrew
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 25, 2019

I have a Confluence page that lists the status for a variety of different systems, just for an easily accessible summary page. Currently, this page needs to be updated manually with the status updates, but I'm wondering if there is a way to get this external system status and then have it display on the Confluence page?

I attempted to use Javascript (see below):

$( document ).ready(function() {
$.ajax
({
type: "GET",
url: "{url}",
dataType: 'json',
headers: {
"Authorization": "{authorization key}"
},
success: function(data){
var status = '${data.connection_status}'
document.getElementById("connectionStatus").value = status;
}
});
});

This should retrieve the status of the system, but unsurprisingly I run into a CORS error. I was expecting this, but just thought I'd give it a quick try.

With this is mind, are there any alternatives available? Whether methods, or the use of plugins (including paid) that would be able to help solve this issue?

1 answer

0 votes
Thomas Deiler
Community Champion
July 15, 2019

Dear @Andrew Cannell ,

very pragmatic solution: collect the status information with a scripted cron job and update the page with the one REST API call.

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events