Atlassian JIRA is an issue and project tracking tool. Like Confluence, JIRA offers the ability to store its users and groups in its database. You can configure Confluence to look for its users and groups in the JIRA database. This page describes the legacy JIRA database connector, which provides a direct connection to the JIRA database.

When to use this option: Choose the legacy JIRA database connector if your JIRA server is JIRA 4.2 or earlier, for backwards compatibility with the already-existing option for Confluence to use JIRA for user management.

If you are using JIRA 4.3 or later, you cannot use the legacy JIRA database connector. Instead, choose the 'Atlassian JIRA' directory type.

On this page:

Connecting Confluence to JIRA

To connect Confluence to JIRA 4.2 or earlier:

  1. Edit the Confluence server.xml file, to construct the datasource location, as described below.
  2. Confluence を再起動します。
  3. Choose the cog icon , then choose General Configuration under Confluence Administration
  4. 左側パネルの「ユーザーディレクトリ」をクリックします。
  5. Add a directory and select type Legacy Atlassian JIRA (4.2 and earlier). Enter the settings as described below.
  6. Save the directory settings.
  7. Define the directory order by clicking the blue up- and down-arrows next to each directory on the 'User Directories' screen.
    ディレクトリの順序がどういった影響をもたらすかを説明します。
    • ディレクトリの順序は、ユーザーおよびグループの検索順序です。
    • ユーザーおよびグループへの変更は、アプリケーションが変更権限を持つ最初のディレクトリに対してのみ行われます。
    For details see Managing Multiple Directories.
  8. Confluence を使用するには、ユーザは confluence-users グループのメンバーであるか、Confluence の "使用可能" 権限を持っている必要があります。以下の手順に従い、Jira アプリケーションで Confluence グループを設定します。
    1. Jira アプリケーションに confluence-users および confluence-administrators グループを追加します。
    2. 上に記載した両方のグループのメンバーとして、自分のユーザー名を追加します。
    3. 以下のいずれかの方法を選択し、既存の Jira ユーザーに Confluence へのアクセス権を付与します。
      • オプション1 : Jira アプリケーションで、関連するユーザーが属するグループを見つけます。上記の Confluence グループの 1 つまたは両方のメンバーとしてグループを追加します。
      • オプション 2: Jira アカウントを使用して Confluence にログインし、Confluence の管理コンソールに移動します。[グローバル権限] をクリックし、[使用可能] 権限を関連する Jira グループに割り当てます。

Confluence での JIRA の設定

設定

説明

名前

A meaningful name that will help you to identify this JIRA server amongst your list of directory servers. Examples:

  • JIRA
  • Example Company JIRA

Datasource Location

The JNDI name of the JIRA datasource configured in your application server. Example:
java:comp/env/jdbc/YourJiraDatasource

In JIRA standalone distributions (using the default application server, Tomcat 6) you can construct the datasource location as follows:

  1. Open your <jira_install>/conf/server.xml file in a text editor.
  2. Look for the database setup section in that file. It looks something like this:

    <Resource auth="Container"
    driverClassName="com.mysql.jdbc.Driver"
    maxActive="20"
    name="*jdbc/JiraDS*"
    password="jirauser"
    type="javax.sql.DataSource"
    url="jdbc:mysql://localhost/jiradb?useUnicode=true&characterEncoding=UTF8"
    username="jirauser"
    validationQuery="select 1"/>
    
  3. Copy the above lines (the 'Resource' section) and paste it to your Confluence's server.xml file (located at <confluence_install>/conf/server.xml), under the Context path. This will then expose the value of the name attribute as the JNDI resource locator.
  4. Copy the JNDI name from the name parameter. In this example, the datasource location is:
    java:comp/env/jdbc/JiraDS
関連トピック

ユーザー ディレクトリの設定

  • ラベルなし