I'm trying to pull JIRA project information into a Confluence Macro, use it to populate some template variables and then send information to JIRA to create an issue based on user input from a Confluence Macro Plugin. The macro is working fine in Confluence, but I'm having a really hard time connecting to and gathering data from JIRA. Is there any documentation on this kind of thing?