Confluence 5.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. Using this macro, you can list publicly accessible issues from any JIRA site. Alternatively, you can allow users to see the issues that they have permission to see, based on their permissions on the JIRA site, assuming:
- The users are logged in to both the JIRA and Confluence sites, and
- Their usernames on both these sites match.
Note: You can also create, find and insert JIRA issues directly within text on a Confluence page or blog post. See Inserting JIRA Issues.
Using the JIRA Issues Macro
To add the JIRA Issues macro to a page:
- In the Confluence editor, choose Insert > Other Macros.
- Find and select the required macro.
オートコンプリートでマクロを素早く入力する方法
既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。マクロのパラメータが編集可能な場合、マクロのダイアログ ウィンドウが開きます。
On this page:
関連ページ
- JIRA 課題の挿入
- マクロでの作業
- Setting Up Trusted Communication between JIRA and Confluence (Not applicable to Confluence OnDemand.)
- Confluence ユーザーガイド
Refer to the instructions below for details on obtaining the URL of the XML view of a search. An example URL is:
http://jira.atlassian.com/sr/jira.issueviews:searchrequest-xml/temp/ SearchRequest.xml?jqlQuery=project+%3D+CONF+AND+%28summary +%7E+jiraissues+OR+description+%7E+jiraissues+OR+comment+%7E+jiraissues%29&tempMax=10
Screenshot: Example of JIRA issues shown on a Confluence page
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.
パラメーター
パラメータは、マクロ出力の内容や形式を制御するために設定するオプションです。
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 (Not applicable to Confluence OnDemand.)
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.
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
Rendering HTML from JIRA
Formatted fields from JIRA can be displayed in Confluence if you set up a Confluence-to-JIRA Trust as described above. Otherwise, such formatted fields will be escaped within the JIRA issues macro output. This is to prevent the possibility of malicious HTML being served by an untrusted JIRA server. The most likely field where you will notice this is in the description field.
So, for example, without the trust relationship, a description column that rendered in JIRA like this -
これは
- 課題の
- 説明です
- would actually appear in the JIRA issues macro like this -
<p>これは課題の<ul><li>説明</li><li>です</li></ul></p>
Configuring Confluence-to-JIRA Trust as described above will enable the field to be rendered as expected.
JIRA 課題マクロの無効化
The functionality is provided by a plugin called the 'JIRA Macros Plugin'. To make the macro unavailable on your site, you can disable the plugin. See Disabling or Enabling a Plugin.
トラブルシューティング
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 Troubleshooting Trusted Communication between JIRA and Confluence. Not applicable to Confluence OnDemand.
コードの例
参照先: