製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

Jira Service Desk JDBC Driver

Jira Service Desk データに連携するJava アプリケーションを素早く、簡単に開発できる便利なドライバー。

データ連携でお困りですか?

お問い合わせ

Crystal Reports でJira Service Desk データに連携して帳票を作成


レポートウィザードを使って、最新のJira Service Desk 連携データを使った帳票を作成。


jiraservicedesk ロゴ画像
jdbc ロゴ画像

JDBC

SAP Crystal Reports ロゴ画像


Crystal Reports には、JDBC 標準向けのサポートが組み込まれています。この記事では、Jira Service Desk の機能を持つ帳票を作成するレポート作成ウィザードの使い方を説明します。

Jira Service Desk JDBC Driver のインストール

CData JDBC Driver for JiraServiceDesk を、ドライバーのJAR をCrystal Reports のクラスパスに含めてインストール:DataDriverCommonElement の下のClassPath element のパスに、 .jar を含むファイルのフルパスを追加します。

CRConfig.xml は通常C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java に配置されます。— パスはインストールによって若干異なる場合があります。ドライバーのJAR はインストールディレクトリの[lib]サブフォルダ内にあります。

ClassPath にJAR を追加したら、Crystal Reports を再起動します。

Jira Service Desk データに接続

下記の手順に従って、レポート作成ウィザードを使ってJira Service Desk 接続を作成します。

  1. 新しい空の帳票で、[Create New Connection]>[JDBC (JNDI)]をクリックします。
  2. ウィザードでJDBC 接続URL を選択します。

    jdbc:jiraservicedesk:ApiKey=myApiKey;User=MyUser;
  3. ドライバーのクラス名を設定:

    cdata.jdbc.jiraservicedesk.JiraServiceDeskDriver

    You can establish a connection to any Jira Service Desk Cloud account or Server instance.

    Connecting with a Cloud Account

    To connect to a Cloud account, you'll first need to retrieve an APIToken. To generate one, log in to your Atlassian account and navigate to API tokens > Create API token. The generated token will be displayed.

    Supply the following to connect to data:

    • User: Set this to the username of the authenticating user.
    • APIToken: Set this to the API token found previously.

    Connecting with a Service Account

    To authenticate with a service account, you will need to supply the following connection properties:

    • User: Set this to the username of the authenticating user.
    • Password: Set this to the password of the authenticating user.
    • URL: Set this to the URL associated with your JIRA Service Desk endpoint. For example, https://yoursitename.atlassian.net.

    Note: Password has been deprecated for connecting to a Cloud Account and is now used only to connect to a Server Instance.

    Accessing Custom Fields

    By default, the connector only surfaces system fields. To access the custom fields for Issues, set IncludeCustomFields.

帳票をデザイン

JDBC 接続をJira Service Desk に追加したら、レポート作成ウィザードを使ってJira Service Desk を帳票に追加できます。

  1. 帳票に必要なテーブルやフィールドを選択して、データソースを設定します。この例では、Requests テーブルのRequestId およびReporterName カラムを使います。

    Jira Service Desk data accessible as tables and columns in the Report Wizard. (Salesforce is shown.)
  2. チャートの種類を設定 ウィザードを完了すると、Crystal Reports はJira Service Desk data に実行されるSQL クエリをビルドします。ドライバーは、ライブJira Service Desk data に対してクエリを実行します。

    Chart type, axes, and summary type in the Report Wizard. (Salesforce is shown.)
  3. 必要に応じて、ほかのフィルタや帳票テンプレートを設定します。
  4. データのインポートが終わったら、データをサマライズもしくはソートするチャートやレポートオブジェクトを作成できます。[Insert]>[Chart]をクリックして、チャートエキスパートを開きます。Total ReporterName by RequestId を表すグラフを作成するには、RequestId を[On Change Of]メニューセレクションの下のボックスに追加してからReporterName を[Show Values]の下のボックスに追加します。

    The x and y axes of the chart.

完成した帳票をプレビューして、チャートにデータが入っていることを確認します。Null 値を取り除きたい場合は、SelectionFormula を使います。

A chart with null values filtered out. (Salesforce is shown.)