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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.