Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pull fields from JIRA using Macro in Confluence

MarkC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 28, 2013

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

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 10, 2013

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

MarkC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2014

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events