Pull fields from JIRA using Macro in Confluence

Is there a way to accomplish the following:

  1. Create a JIRA issue and populate a custom field called Requestor.
  2. Create a user macro in Confluence that does the following:
    • Specify a JIRA issue number
    • Locate and read the Requestor field
    • Print the value of the Requestor field onto a Confluence page
  3. Put the macro onto a Confluence page and set it for the issue and pull the specific field.

I'm trying to find ways to increase the integration for certain individual fields so that content is updated in one location and automatically updated in another. The JIRA Issues macro is not what I need/want to create. I want to pull specific fields from JIRA into Confluence.

We already have Confluence and JIRA linked together to pull in issues.

1 answer

Can't think of any add-on which can do this directly. You may need to write a macro that calls the JIRA REST interface for the JIRA issue and can display the value of that custom field within JIRA

https://docs.atlassian.com/jira/REST/latest/#d2e1223

Or a user macro might be sufficient for this code - https://confluence.atlassian.com/display/DOC/Writing+User+Macros

You wouldn't happen to have an example...?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,134 views 2 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you