I need help finding information for confluence groovy scripting.
When a confluence page is linked to a Jira issue this button shows up on the page

Within Confluence can I use groovy to get the Issue key and summary to display a text field or Jira link macro?
I would like to be able to see the Jira linked issues listed out like the card here when you click the Jira link button above

Thanks
-SJ