I am able to get Conflunce link at Jira issue, but cannot read the content of Confluence page:
def issue = ComponentAccessor.getIssueManager().getIssueObject("GR-5")
log.info('Start')
def rlm = ComponentAccessor.getComponent(RemoteIssueLinkManager)
def links = rlm.getRemoteIssueLinksForIssue(issue)
def onlyConfluenceLinks = links.findAll {
if(it.applicationType == RemoteIssueLink.APPLICATION_TYPE_CONFLUENCE){
log.info(it.applicationType) // Output: com.atlassian.confluence
log.info(it.getSummary()) // Output:
log.info(it.getTitle()) // Output: Page
log.info(it.getUrl()) // Output: https://confluence.com/pages/viewpage.action?pageId=6652581
log.info(it.getSummary()) // Output:
}
}
My Conflunce page looks like that:

I need to get all LO issues at this page.
How can I get content of Confluence page?