Jira Cloud for Sheets を使用すると、既存の Jira フィルターやカスタム JQL (Jira クエリ言語) 。
G Suite 管理者が、ユーザー向けに Google Sheets アドオンへのアクセスを許可する必要がある場合があります。 詳細についてはこちらをご覧ください。
Jira for Sheets が使用するサーバー IP アドレスには、次が含まれます。
34.86.33.169, 34.86.254.214, 34.86.159.247, 35.188.250.227, 34.86.95.48, 34.86.125.23, 34.86.25.26, 34.86.189.204, 34.86.118.203, 34.86.202.157, 34.86.8.82, 34.86.247.165
これは、Jira for Google Sheets、Jira for Excel、および Jira から Google スプレッドシート/Excel へのエクスポートに適用されます。
Jira Cloud インスタンスへのアクセスを制限する場合は、これらの IP アドレスを許可リストに追加してください。
Google スプレッドシートへのインストール
Google スプレッドシートのスプレッドシートで次の操作を実行します。
[アドオン] をクリックして [アドオンを取得] をクリックします。
「Jira Cloud for Sheets」を検索し、カードにカーソルを合わせて [+無料] をクリックします。
プロンプトに従い、アドオンに Google スプレッドシートへのアクセスを許可します。
クラウド サイト / インスタンスの接続
Google スプレッドシートでスプレッドシートを開き、[アドオン] > [Jira Cloud for Sheets] > [Open…] の順に選択します。
[CONNECT] をクリックすると、新しいブラウザ ウィンドウが開きます。
利用可能なサイトの一覧から追加するサイトを選び、[Accept] をクリックします。
Once the authorization is successful you’ll be redirected to your Google Sheets spreadsheet.
Jira からのデータのインポート
You can now import Jira work items to your spreadsheet by clicking on Get data from Jira and then using one of the following methods:
JQL を使用する
特定の JQL を指定しない場合、システムは all work items from all projects 。
[アドオン] > [Jira Cloud for Sheets] > [Open…] > [Get data from Jira] の順にクリックします。
実行したい JQL を指定します。[Open in Jira] リンクをクリックすると、Jira を開いてそこで JQL クエリをテストすることができます。
[ GET DATA] をクリックします。
Jira will now run the query and return all matching work items in the current sheet.
フィルターを使用する
Jira Cloud サイトでフィルターを定義済みの場合、それをスプレッドシートで使用できます。
現在、" スター付きフィルター 」のみをサポートしています。 " のみがサポートされています。使用したいフィルターが Jira Cloud サイトで "スター付き" に設定されていることをご確認ください。
[アドオン] > [Jira Cloud for Sheets] > [Open…] > [Get data from Jira] の順にクリックします。
[FILTERS] タブを選択します。
利用可能なフィルターの一覧からフィルターを選択します。
[GET DATA] をクリックします。
返される行の数を [Max Rows] で制限できます。
Jira will run the query and return all matching work items in the current sheet.
JQL で JIRA() カスタム関数を使用する
このアドオンにより、カスタムの Google スプレッドシート関数である "=JIRA()" が導入されます。これを使用してスプレッドシートのセルから Jira にクエリを送信できます。
[アドオン] > [Jira Cloud for Sheets] > [Open…] > [Settings] の順にクリックします。
[Enable =JIRA() function for users of this sheet] をクリックします。
表示される警告を確認して承諾します。
この関数はドキュメントの所有者のみが有効化できます。有効化すると、この関数はドキュメント所有者が設定したサイトと Jira アカウントを Jira へのクエリに使用します。
この関数はドキュメントの所有者のみが有効化できます。有効化すると、この関数はドキュメント所有者が設定したサイトと Jira アカウントを Jira へのクエリに使用します。
JIRA() カスタム関数を有効化したスプレッドシートでは、編集権限を持つすべてのユーザーがこの関数を使用して、ドキュメント所有者の Jira アカウントとして Jira データをインポートできます。スプレッドシートを共有する際はご注意ください。
スプレッドシートのセルで次のように関数を使用できます。
シナリオ
Return the work items in project ProjA で先週作成された課題を、既定の列セットを使用して取得します。
クエリ
=JIRA("project = ProjA and createdDate >= -7d")
シナリオ
Return all the work items in ProjA but only the work item key, summary text, the created time, and the reporter.
クエリ
=JIRA("project = ProjA", "workitemkey,summary,created,reporter")
シナリオ
Return the first 10 work items in ProjA but only the work item key, the internal id of the status, and a custom column with spaces in its name.
クエリ
=JIRA("project = ProjA order by createdDate desc", "workitemkey,status.id,another column", 0, 10)
シナリオ
Return all the work items in ProjA but only the work item key, summary text, the created time, and the reporter.
クエリ
=JIRA("project = ProjA", "workitemkey,summary,created,reporter")
If you want to use multiple words separated by a space in the =JIRA()
function, you'll have to enclose the words with single quotes. For example, =JIRA("project=XYZ AND workitemtype='technical
task'")
will return all work items that are of work type "technical task" in the project XYZ.
Jira Cloud サイトを追加で接続する (任意)
Jira Cloud サイトを追加で接続するには、次の手順を実行します。
[アドオン] > [Jira Cloud for Sheets] > [Open…] の順にクリックします。
現在のサイトの横にあるドロップダウンをクリックして、[Add another site…] をクリックします。
プロンプトに従い、別の Jira Cloud サイトへのアクセスをアドオンに許可します。
これで、インポート中にサイトを切り替えることができるようになりました。
Known work items and workarounds
=JIRA() 関数を有効化したがエラーが表示される
=JIRA() 関数を使用しているセルの値を削除して Enter キーを押します。クエリを再入力し、適切に動作するかどうかを確認します。この操作は一回のみ行う必要があります。現在、この問題を引き起こしている不具合の修正に取り組んでいます。
The add-on returns an error when I want to query a large number of work items.
The add-on should work fine with queries of up to 10,000 work items; however, this number may vary depending on the complexity and size of your data and setup. If you notice errors trying to load 10,000 work items at once, try decreasing this number.
If you need to return more work items, you should use the =JIRA() function which lets you paginate through results. Make sure to sort the results in the query.
For example, to return 20000 work items, put this on one cell to return the first 10,000 work items:
=JIRA("project = ProjA order by updated desc", "", 0, 10000)
And this in another cell to return the following 10,000 work items:
=JIRA("project = ProjA order by updated desc", "", 10000, 10000)
アドオンがユーザー データを空白で返す
アドオンは個々のユーザーのプロファイル データのプライバシー設定を尊重します。ユーザーが自身のプロファイル情報を非公開にしていた場合、次の列でそのユーザーに対して空白の値が返されます。 assignee または reporter。
The add-on duplicates some work items in the export
When attributes for fields are selected, such as Comment IDs or Status Transition Dates, and there is more than one value associated with the work item (e.g. more than one status transition, comment, etc.), Excel will expand the work item row for each attribute.
This behavior may lead to timeouts, mainly when selecting many work items at a time, as more data needs to be retrieved and added to the sheet. Additionally, if a work item limit is set, the rows returned may exceed this limit as each work item could have more than one line.
FAQ (参考情報)
Jira Cloud for Sheets ではどのような機能を利用できますか?
Jira Cloud Sheets は Google スプレッドシートで使用できるアドオンであり、これを使用することで Jira Cloud サイトのデータを次のようにインポートできます。
JQL (Jira Query Language) に基づいた検索結果
Jira Cloud のスター付き / 定義済みのフィルターに基づいた検索結果
スプレッドシートに入力する列はどのように指定できますか?
アドオンはデータのインポート時に Jira Cloud の列設定を使用します。アカウントやフィルターに応じて異なる列設定が行われている場合があります。Jira Cloud にユーザー / フィルター固有の列設定がない場合、アドオンは既定のシステム列を使用します。
次のように =JIRA() 関数を使用することで異なる列を指定できます。
=JIRA("project=MYP","workitemType,reporter,another column")
高度なカスタマイズ
You can also extract subfields if you know the structure of the data returned by Jira Cloud API. For example, if you are interested only in importing the work item ID and the reporter’s display name, you can use the following arguments to the JIRA() custom function.
=JIRA("project=MYP","workitemType.id,reporter.displayName")
アドオンのアンインストール方法を教えてください
アドオンをアンインストールするには、[アドオン] > [アドオンを管理] > [管理] > [削除] を選択します。
ライセンス付与済みのアトラシアン製品を持っていない場合は、このアドオンを使用できますか?
いいえ、このアドオンを使用するには、Jira Cloud のライセンス / サブスクリプションが必要です。
このアドオンを Jira Server と使用することはできますか?
いいえ、このアドオンは Jira Jira Work Management、Jira、Jira Service Management の Cloud サイトでのみ使用できます。ご利用の製品がクラウド製品なのかサーバー製品なのか不明な場合は、Jira 管理者にご確認ください。
接続済みの Jira Cloud インスタンスからスプレッドシートの接続を解除するにはどうすればよいですか
設定済みのすべての Jira Cloud サイトをアドオンから切断できます。スプレッドシートで次の手順を実行します。
[アドオン] > [Jira Cloud for Sheets] > [Open…] の順にクリックします。
[Disconnect site] ボタンをクリックします。
ご利用の Atlassian ID のプロファイル ページに転送されます。ここで [アクセスを取り消し ] をクリックすることで、アドオン / アプリを切断できます。
このアドオンは GDPR に準拠していますか?
はい。このアドオンは個人情報を保存しません。詳細については次のリンクをご参照ください。