I've been trying to get a Jira dashboard gadget to display in a confluence page, specifically the gantt chart from the Jira BigPicture plugin. Since the gadget when displayed in Confluence will vary depending on whether or not the user has been approved, my goal is to circumvent this feature.
What I've discovered is that using inspect element or a rest client to pull a page as an approved user will allow me to grab the code for a gadget that can be displayed. However, when I try to use javascript (using the confluence html macro), or a Java servlet, or use the REST api to pull the body.view code, I cannot seem to get the code to either authenticate as an approved user, or pull valid code.
Does anybody have any thoughts or approaches I can do?