viewing single fields of an issue in Confluence

Deleted user October 17, 2012

This is an integration question. I got a request from some project managers at my firm on whether the following is possible:

1. An issue is created Jira side in an implementation project. This contains mostly custom fields and has a custom workflow enabled.

2. A macro or extension Confluence side reads the values from one or more fields of the Jira issue and displays them embedded on the Confluence page. They must be able if at all possible to control the layout and order of the fields on the wiki page.

The reason for this is because though the issue is created in Jira, the discussion for the implementations goes on in in Confluence, and the department would like to keep it as the central point of communication between departments.

I know that the easisest way would be to have just an embedded Jira search on the Confluence page that is configured to show the relevant fields. But I'm asking if there's been done any deeper integration than that, be it a custom in-house plugin or some commercial solution.

What doth the hive-mind say?

5 answers

1 accepted

0 votes
Answer accepted
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.
October 17, 2012

You can do with a bit of javascript inside the {html} macro, I suppose.

Load the issue with the REST call to JIRA (assuming that trust is between Confluence and JIRA), use the resulting JSON object and set values for you html elements you have set in your confluence page.

http://docs.atlassian.com/jira/REST/latest/#id334086

You may also use the {run} to load it only on when needed, and also may define a template for everyone to reuse the code.

Deleted user October 17, 2012

this seems to be a solution I can work with. Thanks for this!

0 votes
Radek Janata March 22, 2019

You can create your own custom user macro and misuse native Jira Issue macro to display a custom field value. See solution in CONFSERVER-35826's comment:

https://jira.atlassian.com/browse/CONFSERVER-35826?focusedCommentId=1925612&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1925612

I've replaced the JS with CSS in Confluence Stylesheet configuration (see my subsequent comment).

Dorian Workman January 28, 2020

Thanks @Radek Janata for the link and thanks @Fabian Hußl for the user macro - it worked perfectly for me!

0 votes
Maya S Chase
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.
December 5, 2014

I couldn't find an existing one, so I entered an enhancement request for this functionality to be restored, or for a new macro to be created.  https://jira.atlassian.com/browse/CONF-35826

0 votes
Ken Roland June 1, 2014

If you are using an older version of Jira/Confluence you can use the Jira Issues macro

{jira-issue:jira-url=https://jira.yourcompany.com|issue-key=ISS-176|display-fields=fix_version/s}<jira-field:fix_version/s>{jira-issue}
In the newer versions they removed these features

0 votes
RianA
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 17, 2012

Hi there, if you would like just to read a couple of issues from JIRA side, it should be possible from JIRA Issues Macro, it has the ability to read custom field too. However if you would like to do some changes it's not possible using out-of-box feature of Confluence. Confluence has the ability to create JIRA Issues from its pages too.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events