Teamwork Graph CLI のプロンプトとワークフローの例
自然言語で質問すると、Atlassian ワークスペース全体から即座に回答を得ることができます。このページでは、試すことができるプロンプトの例や、Teamwork Graph (TWG) CLI を使用してエージェントが実行できる複数ステップのワークフローを紹介しています。これらはあくまで出発点です。エージェントは自然言語を理解するため、記載されている文言をそのまま使用する必要はありません。
TWG CLI は現在、無料で利用できます。将来的には、一部の機能が有料サービスとして提供される可能性があります。変更がある場合は、事前にお知らせします。
複数のアプリを横断してエージェントに質問する
TWG CLI を使用すると、エージェントは 1 つのプロンプトで複数の Atlassian アプリからコンテキストを取得できるため、各アプリを個別に検索しなくても全体像を把握できます。
ユースケース | プロンプトの例 |
|---|---|
最近の作業を要約する — Jira、Confluence、Bitbucket でのアクティビティをまとめて確認し、1 週間の作業をすばやく振り返ることができます。 | 「今週取り組んだ作業をすべて要約して。」 |
Get context for your current focus — See your open work items, upcoming deadlines, and recent activity, so you can prioritise your day. | 「今日は何に集中すべき?」 |
人物を調べる — 特定のユーザーが誰なのか、また製品全体でどのような作業に取り組んでいるかを確認できます。 | 「[名前] は誰で、何に取り組んでいるの?」 |
新しいチームに参加する — チームのメンバー、プロジェクト、ドキュメント、現在のスプリントの概要を確認できます。 | 「Platform Engineering チームに参加したばかりです。状況を把握できるように手伝ってください。」 |
Build scripts with your agent
Your agent can also write scripts that use TWG CLI, so a task you ask for once becomes something you can run again. Describe what the script should do, and your agent picks the twg commands, writes the script, and runs it to check it works.
ユースケース | プロンプトの例 |
|---|---|
Export your work: get your open work items as a CSV you can share or open in a spreadsheet. | "Write a script that exports my open Jira work items, with status and due date, to a CSV." |
Weekly recap: get a list of what you finished each week for standups or status updates. | "Write a script that lists the work items I resolved in the last 7 days as a Markdown list." |
Find stale work: spot work items that haven't moved in a while. | "Write a script that finds work items in the PROJ project with no updates in 14 days." |
Sprint prep: get a sprint summary before your review. | "Write a script that groups the current sprint's work items by status and flags anything overdue." |
複数ステップのワークフローの例
これらの例は、エージェントが 1 つのプロンプトから複数のクエリを連鎖的に実行する仕組みを示しています。
例 1: 1 週間の作業を要約する
入力する内容:
「今週取り組んだ作業をすべて要約して。」
エージェントの動作:
Looks up your recent Jira activity — work items updated, commented on, or transitioned.
自分が作成または編集した Confluence ページを見つけます。
Bitbucket で自分が作成した、またはレビューしたプル リクエストを確認します。
スタンドアップ ミーティングや進捗確認で共有できる、わかりやすい要約を作成します。
例 2: 新しいプロジェクトに参加する
入力する内容:
「Platform Engineering チームに参加したばかりです。状況を把握できるように手伝ってください。」
エージェントの動作:
チーム構造と主要メンバーを確認します。
Looks up the current active sprint and open work items.
関連する Confluence ドキュメントやオンボーディング ページを探します。
チームのリポジトリにある最近のプル リクエストを一覧表示します。
チームが現在注力している内容を要約します。
Example 3: Explore a Jira work item in depth
入力する内容:
「PROJ-123 についてすべて教えて。」
エージェントの動作:
Fetches the work items details, current status, and assignee.
Looks up linked work items and dependencies.
関連するプルリクエストや、リンクされている Confluence ページを探します。
Gives you a full picture of the work item and what needs to happen next.
例 4: スプリント レビューの準備をする
入力する内容:
「スプリント レビューの準備を手伝って。スプリントは金曜日に終了します。」
エージェントの動作:
Lists all work items in the current sprint, grouped by status.
期限超過の課題や未着手の課題を特定します。
完了した作業を、共有しやすい形式で要約します。
ブロッカーやリスクのある項目を特定します。
Example 5: Turn a prompt into a script
入力する内容:
"Write a script that lists the work items I resolved in the last 7 days as a Markdown list, so I can run it every Friday."
エージェントの動作:
Picks the twg command that searches Jira with JQL and returns JSON.
Writes a short script that runs the query and formats the results as a Markdown list.
Runs the script to check the output.
Tells you how to run it again, or how to schedule it on your machine.
Write your own scripts
Every twg command also works directly from your terminal. Add -o json to get machine-readable output you can pass to tools like jq (install jq first if you don't have it).
Export your open work items to a CSV:
twg jira workitem query "assignee = currentUser() AND statusCategory != Done ORDER BY duedate" \
--fields summary,status,duedate -n 100 -o json --output-summary none \
| jq -r '.data.issues[] | [.key, .status.name, (.duedate // ""), .summary] | @csv' \
> my-open-work.csvList what you resolved this week as Markdown:
twg jira workitem query "assignee = currentUser() AND resolved >= -7d ORDER BY resolved DESC" \
--fields summary -n 100 -o json --output-summary none \
| jq -r '.data.issues[] | "- [\(.key)](\(.url)) \(.summary)"'Each run returns up to 100 work items. If you use more than one Atlassian site, add --site <your-site>. Scripts run as you, with your Atlassian permissions and the TWG CLI permissions your admin has set. Run twg help to find commands, or twg <command> --help for a command's options.
プロンプト例クイック リファレンス
これらのプロンプトは出発点としてご利用ください。エージェントは自然言語を理解するため、記載されている文言をそのまま使用する必要はありません。
トピック | プロンプトの例 |
|---|---|
マイ ワーク | “What are my open Jira work items?” |
マイ ワーク | 「今週取り組んだ作業をすべて要約して。」 |
Sprint | 「Platform チームの現在のスプリントを表示して。」 |
作業項目 | 「PROJ-123 についてすべて教えて。」 |
Confluence | 「Confluence でオンボーディングに関するページを探して。」 |
コード | 「今月私が作成したプル リクエストを表示して。」 |
ユーザー | 「Platform Engineering チームの主要メンバーは誰?」 |
ゴール | 「私のチームはどのような目標を追跡している?」 |
コンテキスト | 「Platform Engineering チームに参加したばかりです。状況を把握できるように手伝ってください。」 |
スクリプト | “Write a script that exports my open Jira work items to a CSV.” |
スクリプト | “Write a script that lists what I resolved this week, so I can run it every Friday.” |
この内容はお役に立ちましたか?