Confluence 5.6 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
JIRA is Atlassian's issue tracking and project management system. By adding the JIRA Chart macro to a Confluence page, you can display information about JIRA issues and projects as pie charts.
このマクロを使用するには、Confluence および JIRA のサイトがアプリケーション リンクを介して接続されている必要があります。ページを表示しているユーザーは、JIRA サイトから公開されている課題のチャートを見ることができます。JIRA サイトに表示制限が設定されている場合 (したがって、ユーザーは課題を表示する権限が必要)、チャートを表示する前に認証が必要です。このマクロは、JIRA 5.x 以降と互換性があります。
このページの内容
JIRA チャートをご使用のページに追加するには:
ご使用の JIRA サーバーを選択します。
複数の JIRA インスタンスが Confluence にリンクされている場合、ドロップダウンにプライマリ アプリケーション リンクが既定として表示されます。To find out more about searching for issues see Displaying issues via a JIRA Query Language (JQL) search.
スクリーンショット:マクロ ブラウザー内の JIRA チャート マクロ
円グラフは課題ステータス、優先度、担当者などのレポートに使用できます。
ページ上でのグラフの表示方法をさらに制御することも可能です。表示オプション を選択します。
「作成済み vs 解決済み課題」レポートは、長期間にあたる作成済み課題の数と解決済み課題の数の差を示すために使用できます。
ページ上でのグラフの表示方法をさらに制御することも可能です。次の表示オプションから選択します。
二次元グラフは課題統計をマトリックスで示すために使用されます。これらのフィールドを表示するよう X 軸または Y 軸を設定できます。
たとえば、課題をステータス別にしたグラフを使用することができます (上記のように)。
グラフの軸を設定するには、「表示オプション:」を選択します。
The functionality is provided by an add-on (plugin) called 'JIRA Macros'. This macro is also used for the JIRA Issues macro. To make the macro unavailable on your site, you can disable the add-on. See Disabling and enabling apps.
認証:認証が必要な課題 (JIRA で匿名ユーザーに表示されない課題) を含むクエリの場合、Confluence ページ上のチャートを表示するために認証を求めるプロンプトが出されます。
マクロ ブラウザーで課題を検索するには認証が必要な場合があります。 JIRA 5.x では、匿名ユーザーとして、アクセス制限のない課題を検索することができますが、JIRA 6.x では、どのような課題でも検索するには認証が必要です。次の例は、Confluence ページの基本的なマークアップを調べたり、編集したりする上級ユーザー向けに提供されています。
マクロ名: jirachart
マクロ本文: なし。
The following parameters are available in storage format. Note that some parameters are only available for specific chart types.
パラメーター名 | Chart type | 必須 | 既定 | パラメーターの説明と指定可能な値 |
---|---|---|---|---|
| すべて | はい | 円 | Type of chart to display. Chart types include:
|
showinfor | すべて | いいえ | False | データに関する情報をチャートの下にテキストで表示します。 合計値とグラフの種類の値も含まれます。 |
jql | すべて | はい | 表示するチャートの JQL クエリ | |
width | すべて | 600 | (空白) | これはチャート領域の全幅です。幅はピクセルまたはパーセントで入力できます。または、空白のままにして、利用可能なスペースに合わせることも可能です。 |
border | すべて | いいえ | False | チャート領域周囲の境界線を表示します。 |
statType | pie | はい | ステータス | 円グラフを分割する JIRA フィールド:
|
periodName | createdvsresolved | はい | Time frame to report by. Options are There is a limit to the number of days the report can generate for each period. For example you can report hourly for a maximum of ten days, and report daily for a maximum of 300 days. | |
daysprevious | createdvsresolved | はい | False | Number of days, counting backwards from today, to include in the report. Note that maximum days limits might apply depending on the Period you have chosen. |
isCumulative | createdvsresolved | いいえ | False | If true , the chart will progressively add data. If false the chart will show individual values for each period. |
showUnresolvedTrend | createdvsresolved | いいえ | False | Include a subplot showing unresolved issues trend. |
versionLabel | createdvsresolved | いいえ | なし | Indicate version release dates with a vertical line. Values include major , all and none . |
xstattype |
| はい | ステータス | JIRA field for the X axis (columns) of the chart. These are the same issue fields that are available in the |
ystattype | twodimensional | はい | 担当者 | JIRA field for the Y axis (rows) of the chart. These are the same issue fields that are available in the |
numberToShow | twodimensional | いいえ | 5 | Maximum number of rows to include in the chart. |
Example chart by Issue Type - note that Confluence will insert the server
and serverId
parameters, based on settings in Application Links:
<ac:structured-macro ac:name="jirachart"> <ac:parameter ac:name="chartType">pie</ac:parameter> <ac:parameter ac:name="statType">issuetype</ac:parameter> <ac:parameter ac:name="showinfor">true</ac:parameter> <ac:parameter ac:name="jql">project%20%3D%20CONF%20and%20fixVersion%20in%20('5.3')</ac:parameter> <ac:parameter ac:name="width">600</ac:parameter> <ac:parameter ac:name="server">JAC</ac:parameter> <ac:parameter ac:name="serverId">144880e9-a353-312f-9412-e5028e8166fa</ac:parameter> <ac:parameter ac:name="border">true</ac:parameter> </ac:structured-macro>
Example chart - note that Confluence will insert the server
and serverId
parameters, based on settings in Application Links:
<p><ac:structured-macro ac:name="jirachart"> <ac:parameter ac:name="isAuthenticated">true</ac:parameter> <ac:parameter ac:name="versionLabel">all</ac:parameter> <ac:parameter ac:name="jql">project%20%3D%20confluence%20and%20component%20%3D%20documentation</ac:parameter> <ac:parameter ac:name="showUnresolvedTrend">true</ac:parameter> <ac:parameter ac:name="width">450</ac:parameter> <ac:parameter ac:name="daysprevious">30</ac:parameter> <ac:parameter ac:name="isCumulative">true</ac:parameter> <ac:parameter ac:name="chartType">createdvsresolved</ac:parameter> <ac:parameter ac:name="showinfor">false</ac:parameter> <ac:parameter ac:name="server">JAC</ac:parameter> <ac:parameter ac:name="serverId">144880e9-a353-312f-9412-e5028e8166fa</ac:parameter> <ac:parameter ac:name="border">true</ac:parameter> <ac:parameter ac:name="periodName">daily</ac:parameter> </ac:structured-macro></p>
Example chart - note that Confluence will insert the server
and serverId
parameters, based on settings in Application Links:
<ac:structured-macro ac:name="jirachart"> <ac:parameter ac:name="chartType">twodimensional</ac:parameter> <ac:parameter ac:name="ystattype">issuetype</ac:parameter> <ac:parameter ac:name="sortBy" /> <ac:parameter ac:name="isAuthenticated">true</ac:parameter> <ac:parameter ac:name="jql">project%20%3D%20CONF%20and%20Component%20%3D%20Documentation</ac:parameter> <ac:parameter ac:name="width" /><ac:parameter ac:name="server">JAC</ac:parameter> <ac:parameter ac:name="numberToShow">10</ac:parameter> <ac:parameter ac:name="sortDirection" /> <ac:parameter ac:name="serverId">144880e9-a353-312f-9412-ed528e8166fa</ac:parameter> <ac:parameter ac:name="xstattype">statuses</ac:parameter> </ac:structured-macro>