Confluence 3.1 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
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:
Usage with the Macro Browser
To insert the JIRA issues macro into a page using the Macro Browser,
- Open your desired Confluence page or blog post, then click the 'Edit' button. The page or blog post opens in edit mode.
- Click the Macro Browser icon on the toolbar. The macro browser window opens in the middle of the screen in 'macro selection' mode.
- Scroll through the list of macros. Alternatively, start typing part of the name of your desired macro into the search box at the top right of the macro browser window. Macros with a matching name will appear in the main pane.
- Click on the desired macro to access its parameters and preview parameter changes ('preview mode').
- Set the macro parameters to your requirements. If desired, you can preview these changes by clicking 'Refresh'.
- Click 'Insert' to put the macro into the page.
Once you've found the JIRA issues macro, click 'insert' to add it to your page.
Usage with the Wiki Markup Editor
The basic syntax is:
{jiraissues:url=<URL of your JIRA XML view>}
Displaying a List of JIRA Issues on a Confluence Page
Step 1 — Obtain the URL of the Issue Filter
- Log in to your JIRA system.
- Go to the 'Issues' screen and create a new filter. Do not modify an existing filter.
This is the 'Find Issues' screen in JIRA 3.13.x and earlier.
- Set up your search parameters and use 'View' to check the issues returned.
- Once the filter is finished, go to the Filter's 'View' tab/section in the top-left area of the JIRA interface.
- Copy the XML link. To do this, follow the appropriate steps below:
- If you are using JIRA 4.0.x or later:
- Click the 'Views' menu and use this menu to copy the XML link to your clipboard. For example, right-click the 'XML' menu item and choose the right-click menu option for copying that link.
- Click the 'Views' menu and use this menu to copy the XML link to your clipboard. For example, right-click the 'XML' menu item and choose the right-click menu option for copying that link.
- If you are using JIRA 3.13.x or earlier:
- Locate the 'Current View' links section (see example below) and find the 'XML' link.
- Copy the 'XML' link to your clipboard.
- Locate the 'Current View' links section (see example below) and find the 'XML' link.
- If you are using JIRA 4.0.x or later:
Step 2 — Embed the Issue Filter URL onto your Confluence Page
- Log in to your Confluence system.
- Edit the page where you wish to display the list of JIRA issues.
- Type the following text into a new line at the appropriate location:
{jiraissues:url=CONTENT}
- Replace 'CONTENT' with the JIRA filter URL from your clipboard.
- Customise the macro output by adding optional parameters. See below.
- Save the Confluence page.
パラメーター
Parameters are options that you can include in Confluence macros to control the content or format of the macro output. The table below lists relevant parameters for this macro.
Parameter names are different in the macro browser and in wiki markup. Below we show the macro browser parameter names in bold text, and the equivalent wiki markup parameters in (bracketed
) text. If we do not show any parameter name for the wiki markup, then you should leave out the parameter name and simply include the parameter value as the first parameter, immediately after the colon (:
).
The JIRA Issues macro allows the following parameters:
パラメーター |
必須 |
既定 |
説明 |
---|---|---|---|
Anonymous Retrieval |
いいえ |
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. |
( |
いいえ |
'url' パラメーターの値 |
If you specify a 'baseurl', then 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. |
JIRA Field Columns to Display |
いいえ |
既定では、次の列が表示されます。
|
A list of JIRA column names, separated by semi-colons (;). Example columns are: key, summary, type, created, fixversion, updated, due, assignee, reporter, priority, status and resolution. You can include any columns recognised by your JIRA site, including custom columns. |
Display Total Numbers Only |
いいえ |
false |
このパラメーターが 'true' に設定されている場合、課題リストには JIRA 課題の数が表示されます。カウントは JIRA サイトにリンクされます。 |
Cache |
いいえ |
オン |
マクロは、JIRA クエリの結果の課題のキャッシュを保持します。'cache' パラメーターが 'off' に設定されている場合、キャッシュの関連部分は、マクロが再度ロードされるたびにクリアされます。(値 'false' も使用でき、 と同じ効果があります。) |
Height (Pixel Value Only) |
いいえ |
480 |
The height in pixels of the table displaying the JIRA issues.
|
( |
いいえ |
In formats not mentioned below, the default is 'dynamic'. |
By default, the JIRA Issues macro offers a dynamic display with the following features:
|
Title |
いいえ |
JIRA 課題 |
You can customise the title text at the top of the JIRA issues table with this parameter. For instance, setting the title to 'Bugs-to-fix' will replace the default 'JIRA Issues' text. This can help provide more context to the list of issues displayed. |
URL |
はい |
なし |
The URL of the XML view of your selected issues in JIRA Issue Navigator. |
Width |
いいえ |
100% |
The width of the table displaying the JIRA issues. Can be indicated either as a percentage (%) or in pixels (px). |
Issues Displayed a Page at a Time
If you are using JIRA 3.13 or later, the JIRA Issues macro will retrieve and show a 'page' of issues at a time. The buttons underneath the table allow you to move to the next or previous page, or to the start or end of the list. The number of issues retrieved per page is determined by the url
parameter — see the description of the macro parameters above.
If your version of JIRA is 3.12 or earlier, the JIRA Issues macro will retrieve all the issues at once and display them as a single 'page'.
例
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 (see above parameter table for their meanings):
anonymous=true
url=
<a long URL derived from the XML view of a JIRA filter>columns=type;key;summary
Below are the results of the above macro markup, displayed on this Confluence page:
Displaying Issues which have Restricted Viewing
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.
Using Confluence-to-JIRA Trusted Communication (Recommended)
For Confluence 2.7.0 and later and JIRA 3.12 and later, your administrator can set up trusted communication between Confluence and JIRA. The entire process is described in the Confluence Administrator's Guide. Provided that your administrator has set up trusted communication, you don't need to add any extra parameters. 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.
Remove the username and password from your macro markup code
Prior to Confluence 2.7, you needed to include a username and password in the macro markup code if you wanted to display JIRA issues which had restricted viewing. Once your administrator has set up trusted communication between Confluence and JIRA, you no longer need to include a username and password in the markup code for your JIRA macros.
The following options are available for determining the issues which will be retrieved from JIRA and displayed on the Confluence page:
必要な操作 |
Macro parameter |
URL parameter |
コメント |
---|---|---|---|
Display the JIRA issues which the logged-in user is authorised to see. And if the user is not logged in, display only issues which allow unrestricted viewing. |
|
|
Do not specify any authentication parameters. In this case, the behaviour depends on the way your administrator has set up trusted communication between JIRA and Confluence. Here is a summary of the behaviour. If trusted communication is enabled, the authorisation will work seamlessly. When a logged-in user views your page, they will see only the JIRA issues they are allowed to see. And if they are not logged in, they will see only the issues which allow unrestricted viewing. If trusted communication is disabled, the Confluence page will show only the JIRA issues which allow unrestricted viewing. |
Ensure that Confluence will display only the JIRA issues which allow unrestricted viewing. |
|
|
Regardless of who the user is (logged in or not), the Confluence page will show only anonymously-visible issues. Confluence will not attempt to set up a trusted communication link with JIRA in this case. |
Use a pre-determined username and password to access the JIRA issues. |
|
|
Not recommended. Prior to Confluence 2.7, this was the only way of displaying issues with restricted viewing. For Confluence 2.7 and later, this method will still work. Confluence will not attempt to set up a trusted communication link with JIRA in this case. |
Specifying Username and Password in the JIRA URL (Not Recommended)
If you have not set up trusted communication between JIRA and Confluence and 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.
トラブルシューティング
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. Refer to the Confluence Knowledge Base article for more information about problems connecting to SSL services.
And see also:
関連トピック
JIRA Portlet Macro
Working with Macros
In the Administrator's Guide:
Take me back to the Confluence User's Guide.