Confluence 4.0 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
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 on a Confluence page.
You can list publicly accessible issues from any JIRA site, as well as issues restricted to your user account on a JIRA site, assuming:
- You are logged in to both the JIRA and Confluence sites, and
- Your usernames on both of these sites match.
You can also create, find and insert JIRA issues directly within text on a Confluence page or blog post. For more information, refer to Inserting JIRA Issues.
Screenshot: Example of JIRA issues shown on a Confluence page
On this page:
Using the JIRA Issues Macro
To add the JIRA Issues macro to a page:
Refer to the instructions below for details on obtaining the URL of the XML view of a search. An example URL is:
Displaying a List of JIRA Issues from any Accessible JIRA Site
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.
- 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 step below:
- If you are using JIRA 4.0.x or later, choose Views, right-click on XML, and choose Copy Link Location.
- If you are using JIRA 3.13.x or earlier, locate the 'Current View' links section, right-click on XML, and choose Copy Link Location.
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.
Add the JIRA Issues macro to the page, as described above.
- Edit the macro, and paste the JIRA filter URL from your clipboard into the URL box.
- Customise the macro output using the optional parameters. See below.
- Save the Confluence page.
パラメーター
When editing, you can click on the macro placeholder and choose Edit to display the parameters for this macro in the Macro Browser. Parameters are options that you can set for Confluence macros to control the content or format of the macro output. The table below lists parameters for this macro that can be set in the Macro Browser.
The JIRA Issues macro allows the following parameters:
パラメーター | 既定 | 説明 |
---|---|---|
URL | なし | The URL of the XML view of your selected issues in the JIRA Issue Navigator. |
JIRA Field Columns to Display | 既定では、次の列が表示されます。
| A list of JIRA column names, separated by semi-colons (;). Example columns are: |
Display Total Numbers Only | false | When selected, the issue list will only show the number of issues in JIRA. The count will be linked to your JIRA site. |
Cache | オン |
|
Anonymous Retrieval | false | When selected, 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. Otherwise, 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. |
幅 | 100% | The width of the table displaying the JIRA issues. Can be indicated either as a percentage (%) or in pixels (px). |
Height (pixel value only) | 480 | The height in pixels of the table displaying the JIRA issues.
|
タイトル | 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. |
Render Mode | static – when the JIRA issues are displayed in a PDF or Word document, in an email message or in an RSS feed. dynamic – for all other formats. |
|
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.anonymous
&os_username=MYNAME&os_password=MYPASSWORD
トラブルシューティング
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:
関連トピック
Inserting JIRA Issues
JIRA Portlet Macro
Working with Macros
In the Administrator's Guide:
Take me back to the Confluence User's Guide.