You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The Jira Issues Macro allows you to display JIRA issues matching any JIRA filter within a page in Confluence.

Usage:

{jiraissues:url=jira_rss_url|columns=columns}

Description:

Display a list of JIRA issues in a page.

Input:

See parameters table below.

Output:

Nice looking list of issues in a Confluence page.

Bundled with Confluence?

(tick)

Embedding JIRA Issue Filter Results into a Confluence Page

Stage 1 - Obtain Issue Filter URL

  1. Visit your JIRA instance and log in if required.

  2. Visit the 'Find Issues' screen and create a 'New' filter. Do not modify an existing filter.

  3. Setup your search parameters and use 'View' to check the issues returned.

  4. Once the filter is finished, visit the 'Filter View' tab, located above and to the left of the 'View' button.

  5. From the 'Filter View' tab, locate the 'Current View' links section displayed below and find the 'XML' link.

  6. Copy the 'XML' link to your clipboard.

Stage 2 - Embed Issue Filter URL

  1. Visit your Confluence instance and log in if required.

  2. Edit the page you wish to embed the issues into.

  3. Switch to the Wiki Markup editor.

  4. Copy the following text into the a new line at the appropriate location:
    {jiraissues:url=CONTENT}
    
  5. Replace CONTENT with the search URL from your clipboard.

  6. If you need to log in to JIRA to view the search results, append the following parameters to the end of the search URL:
    &os_username=MYNAME&os_password=MYPASSWORD
    
    where MYNAME is a JIRA username and MYPASSWORD their password. This user should not have an & symbol in their username or password.
  7. Customise the macro by adding optional parameters (see below) as required.

  8. Save the updated macro to the Confluence page.

Parameters

The following parameters can be embedded in the macro call:

Parameter

Required

Default

Description

url

yes

none

The URL of the XML view of your selected issues in Jira Issue Navigator.

columns

no

none

a semi-colon delimited list of jira column names. Valid columns are key, summary, type, created, updated, due, assignee, reporter, priority, status and resolution

count

no

false

true will output the number of issues in JIRA, linking the count to the JIRA instance

cache

no

on

'off' will refresh the jiraissues cache, forcing a reload on the page before the display

baseurl

no

 

the header link to the issue navigator will use this base url (used when Confluence connects to Jira with a different URL to normal users)

tempMax

no

20

limits the number of results you get back. This is the case even when count is set to true.

Example

This macro call requests a filter results from the Atlassian public JIRA instance:

{jiraissues:url=http://jira.atlassian.com/secure/IssueNavigator.jspa?view=rss&pid=10470&fixfor=10650&sorter/field=issuekey&sorter/order=DESC&tempMax=25&reset=true|columns=type;key;summary}

The filter results are embedded in the page as:

type key summary

Unable to locate Jira server for this macro. It may be due to Application Link configuration.

Setup Notes

1. HTTPS

The JIRA issues macro can access a JIRA instance running under SSL as long as the Confluence server is set to accept the JIRA SSL certificate.

2. JIRA 3.7 Link Format Change

As a result of RSS feed improvements, the (outdated) JIRA Issues Macro differs between JIRA 3.6 and 3.7.

This is not an issue for users running the latest versions of Confluence and JIRA. However, users using Confluence versions older than 2.2.10 to access JIRA 3.7 must upgrade Confluence or patch the JIRA issues macro to handle the 3.7 format.

Confluence

JIRA

OK

Action Required

2.2.10, 2.3

Any version

(tick)

None

Older than 2.2.10

3.7

(error)

Stop Confluence, open your Confluence install directory and remove the file \WEB-INF\lib\jira3.jar. Download the JIRA 3.7 version and rename it to jira3.jar

Older than 2.2.10

Older than 3.7

(tick)

None

Troubleshooting

See the JIRA Issues Macro FAQ.

RELATED TOPICS

JIRA Portlet Macro
Working with Macros
Configuring JIRA with Confluence in the Administrator's Guide

Take me back to Confluence 2.6 User Guide

  • No labels