JIRA is the issue tracking and project management system supplied by Atlassian. The Jira Issues macro allows you to display a list of issues from a JIRA site within a page in Confluence.
In other words, if you have your own JIRA site, your Confluence page can show a list of issues from your JIRA project. You can also show a list of issues from any JIRA site to which you and your readers have access.
Screenshot: Example of JIRA Issues shown on a Confluence page
On this page:
The basic syntax is:
{jiraissues:url=<URL of your JIRA XML view>}
|
Step 1 — Obtain the URL of the Issue Filter
|
|
Step 2 — Embed the Issue Filter URL onto your Confluence Page
{jiraissues:url=CONTENT}
|
The JIRA Issues macro allows the following parameters:
パラメーター |
必須 |
既定 |
説明 |
|---|---|---|---|
URL |
はい |
なし |
The URL of the XML view of your selected issues in Jira Issue Navigator. (Note that if this URL contains the tempMax parameter, it will limit the number of results you get back. This is the case even when count is set to true. ) |
匿名 |
いいえ |
false |
If this parameter is set to 'true', JIRA will return only the issues which allow unrestricted viewing i.e. the issues which are visible to anonymous viewers, as determined by JIRA's viewing restrictions. If this parameter is omitted or set to 'false', then the results depend on how your administrator has configured the communication between JIRA and Confluence. By default, Confluence will show only the JIRA issues which the user is authorised to view. See more details below. |
列 |
いいえ |
既定では、次の列が表示されます。
|
A list of JIRA column names, separated by semi-colons (;). Example columns are: key, summary, type, created, updated, due, assignee, reporter, priority, status and resolution. |
count |
いいえ |
false |
true will output the number of issues in JIRA, linking the count to the JIRA instance |
キャッシュ |
いいえ |
オン |
The macro maintains a cache of the issues which result from the JIRA query. If the 'cache' parameter is set to 'off', the cache is cleared each time the macro is reloaded. (The value 'false' also works and has the same effect as 'off'.) |
ベース URL |
いいえ |
'url' パラメーターの値 |
If you specify a 'baseurl', the link in the header, pointing to your JIRA site, will use this base URL instead of the value of the 'url' parameter. This is useful when Confluence connects to JIRA with a different URL from the one used by other users. |
Below is an example of some macro markup code, requesting a list of issues from the Atlassian public JIRA site:
{jiraissues:anonymous=true|url=http://jira.atlassian.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?&query=jiraissues&summary=true&description=true&body=true&pid=10470&tempMax=10|columns=type;key;summary}
|
The example code contains three parameters:
anonymous=trueurl=<a long URL derived from the XML view of a JIRA filter>columns=type;key;summaryBelow are the results of the above macro markup, displayed on this Confluence page:
|
You don't need to add any extra parameters — see below for more detail. Provided that your administrator has set up trusted communication, Confluence and JIRA will work out the security between them, ensuring that the user will see only the issues they are authorised to see. Read the section below if you want more detail. |
Maybe your JIRA instance is not visible to anonymous visitors — everyone has to log in before they can see JIRA issues. Or maybe some of the JIRA issues are restricted to viewing by certain users only. This section explains how to handle JIRA issues that have restricted viewing.
For Confluence 2.6.x and earlier, if your JIRA issues have restricted viewing (i.e. JIRA requires a login before allowing access to the issues), then you need to type a JIRA username and password into the macro markup code and save it onto the Confluence page.
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 is the corresponding password for that username. This username and password should not include an ampersand (&) symbol.
For Confluence 2.7.0 and later, your administrator can set up trusted communication between Confluence and JIRA. The entire process is described in the Confluence Administrator's Guide.
Here is a relevant extract from the above page:
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.
JIRA 3.7 Link Format Change
And see also:
JIRA Portlet Macro
Working with Macros
In the Administrator's Guide:
Take me back to Confluence User Guide