本記事では CData サポート担当からこんなことを聞かれたらどこを確認すべきか?という観点で、よく頂くお問合せ内容をご紹介します。
記事はこちら →Crystal Reports には、JDBC 標準向けのサポートが組み込まれています。この記事では、Jira Service Desk の機能を持つ帳票を作成するレポート作成ウィザードの使い方を説明します。
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 接続を作成します。
ウィザードでJDBC 接続URL を選択します。
jdbc:jiraservicedesk:ApiKey=myApiKey;User=MyUser;
ドライバーのクラス名を設定:
cdata.jdbc.jiraservicedesk.JiraServiceDeskDriver
You can establish a connection to any Jira Service Desk Cloud account or Server instance.
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:
To authenticate with a service account, you will need to supply the following connection properties:
Note: Password has been deprecated for connecting to a Cloud Account and is now used only to connect to a Server Instance.
By default, the connector only surfaces system fields. To access the custom fields for Issues, set IncludeCustomFields.
JDBC 接続をJira Service Desk に追加したら、レポート作成ウィザードを使ってJira Service Desk を帳票に追加できます。
帳票に必要なテーブルやフィールドを選択して、データソースを設定します。この例では、Requests テーブルのRequestId およびReporterName カラムを使います。
チャートの種類を設定 ウィザードを完了すると、Crystal Reports はJira Service Desk data に実行されるSQL クエリをビルドします。ドライバーは、ライブJira Service Desk data に対してクエリを実行します。
データのインポートが終わったら、データをサマライズもしくはソートするチャートやレポートオブジェクトを作成できます。[Insert]>[Chart]をクリックして、チャートエキスパートを開きます。Total ReporterName by RequestId を表すグラフを作成するには、RequestId を[On Change Of]メニューセレクションの下のボックスに追加してからReporterName を[Show Values]の下のボックスに追加します。
完成した帳票をプレビューして、チャートにデータが入っていることを確認します。Null 値を取り除きたい場合は、SelectionFormula を使います。