Teamwork Graph CLI example prompts and workflows
Ask natural language questions and get instant answers from across your Atlassian workspace. This page lists example prompts you can try and multi-step workflows your agent can handle with Teamwork Graph (TWG) CLI. These are starting points — your agent understands natural language, so you don't need to use the exact wording.
TWG CLI is currently free to use. In the future, some features may become paid offerings. If this changes, you'll receive advance notice.
Ask your agent across multiple apps
TWG CLI lets your agent pull context from multiple Atlassian apps in a single prompt, so you can get a complete picture without querying each app separately.
Use case | Example prompt |
|---|---|
Summarise your recent work — Get a combined view of your Jira, Confluence, and Bitbucket activity, so you can quickly recap your week. | “Summarise everything I worked on this week.” |
Get context for your current focus — See your open work items, upcoming deadlines, and recent activity, so you can prioritise your day. | “What should I focus on today?” |
Look up a person — Find out who someone is and what they're working on across products. | “Who is [name] and what are they working on?” |
Onboard to a new team — Get a summary of a team's people, projects, docs, and current sprint. | “I just joined the Platform Engineering team. Help me get up to speed.” |
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.
Use case | Example prompt |
|---|---|
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." |
Multi-step workflow examples
These examples show how your agent chains multiple queries from a single prompt.
Example 1: Weekly work summary
What you say:
“Summarise everything I worked on this week.”
What your agent does:
Looks up your recent Jira activity — work items updated, commented on, or transitioned.
Finds Confluence pages you've created or edited.
Checks pull requests you've opened or reviewed in Bitbucket.
Produces a plain-English summary you can share in a standup or check-in.
Example 2: Onboard to a new project
What you say:
“I just joined the Platform Engineering team. Help me get up to speed.”
What your agent does:
Finds the team structure and key people.
Looks up the current active sprint and open work items.
Finds relevant Confluence docs and onboarding pages.
Lists recent pull requests in the team's repos.
Summarises what the team is currently focused on.
Example 3: Explore a Jira work item in depth
What you say:
“Tell me everything about PROJ-123.”
What your agent does:
Fetches the work items details, current status, and assignee.
Looks up linked work items and dependencies.
Finds related pull requests and any linked Confluence pages.
Gives you a full picture of the work item and what needs to happen next.
Example 4: Prepare for a sprint review
What you say:
“Help me prepare for our sprint review. The sprint ends Friday.”
What your agent does:
Lists all work items in the current sprint, grouped by status.
Flags anything overdue or not started.
Summarises completed work in a format you can share.
Identifies any blockers or at-risk items.
Example 5: Turn a prompt into a script
What you say:
"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."
What your agent does:
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.
Example prompts quick reference
Use these prompts as starting points. Your agent understands natural language, so you don't need the exact wording.
Topic | Example prompt |
|---|---|
My work | “What are my open Jira work items?” |
My work | “Summarise everything I worked on this week.” |
Sprint | “Show me the current sprint for the Platform team.” |
Work items | “Tell me everything about PROJ-123.” |
Confluence | “Find pages about onboarding in Confluence.” |
Code | “Show PRs I authored this month.” |
People | “Who are the key people in the Platform Engineering team?” |
Goals | “What goals is my team tracking?” |
Context | “I just joined the Platform Engineering team. Help me get up to speed.” |
Script | “Write a script that exports my open Jira work items to a CSV.” |
Script | “Write a script that lists what I resolved this week, so I can run it every Friday.” |
Was this helpful?