Connect work sources
Workspace admins and members with sessions:admin can connect Jira, ClickUp, Linear, and GitHub. Developer reporting requires the Enterprise plan. Work sources must be enabled for your workspace.
Connect a tracker
The credential needs read access to the work you want to import. Connect a tracker before GitHub if you want to associate pull requests with tasks.
| Source | Credentials | Scope to select |
|---|---|---|
| Jira Cloud | Site URL such as https://your-team.atlassian.net, account email, and API token | Projects |
| ClickUp | API token | Workspace and lists |
| Linear | Personal API key | Teams |
Open work sources
Open Gateway → Developers → Setup → Configuration → Work sources. Choose Connect or manage, then select a tracker.
Enter credentials
Enter the credential and an optional connection name. For Jira, enter the site URL and account email too. Choose Choose projects, Choose lists, or Choose teams.
Choose the work to import
Select the projects, lists, or teams. For ClickUp, choose a workspace first. Choose Load more if the list has more results. Only selected work is imported and available for association.
Save and check the import
Choose Save connection to queue the import. Use Check import status to check its progress.
Connect GitHub
Create a fine-grained GitHub token for the repositories you want to import. Grant read access to Pull requests, Contents, Checks, Actions, and Deployments as needed. Missing optional permissions appear as connection limitations.
Open GitHub setup
Under Work sources, choose Connect or manage, then GitHub.
Enter repositories and token
Enter a connection name, the token, and repositories as
owner/name, one per line. Each connection accepts repositories from one GitHub owner.Choose trackers
Select at least one connected Jira, ClickUp, or Linear tracker. Only explicit task references within the selected trackers are eligible for association.
Connect and check the import
Choose Connect GitHub to save the connection and queue the import. Use Check import status to check its progress.
Refresh or reconnect a source
In Connect or manage, inspect the status, last import, and any Import limitations. Choose Refresh source to queue another import. If a source needs attention, reconnect it and check the credential's access. Previously imported work remains available when a refresh fails.
Reconnecting a tracker in this drawer requires a fresh read credential. It turns off previously enabled tracker writes. This drawer configures read imports.
A saved connection or queued refresh does not mean the import has completed. Check the status and imported data before using the results.
Review task associations
Automatic linking requires session metadata with supported repository and branch evidence, and an enabled deployment. Check the installed CLI's help and release notes if your version does not report that context. Select session sync in setup and approve reporting the available repository and branch context. No task picker is required before each session.
A session can link when its branch names one task in a selected tracker scope, or when its repository and branch match a pull request with an explicit task reference. Connect the tracker and the GitHub repository for the pull-request path. When the pull request mentions several tasks including the one named in the branch, the branch task wins. A branch that names two tasks, or a pull request that names several tasks when the branch names none, stays unlinked. Out-of-scope references are ignored.
Name branches after the task, such as KAN-123-fix-login. Sessions on shared
branches such as main, develop or release/* are not linked automatically.
Why a session isn't linked
Select N sessions not linked beside the task table to see each unlinked session and its reason. You can link sessions you own from there.
| Reason | Fix |
|---|---|
| No task key in the branch or pull request. | Name the branch after the task, or mention the task in the pull request. |
| The branch key isn't in a connected project. | Ask an administrator to select that Jira project, Linear team or ClickUp list in the connection. |
| The branch or pull request names more than one task. | Keep one task key in the branch, or link the session manually. |
| The tracker has no task with this key. | Check the key, and that the connection's credential can read the task. |
| No tracker is connected. | Connect Jira, ClickUp or Linear. |
| Two GitHub connections include this repository. | Ask an administrator to remove the duplicate repository from one connection. |
| More than one connected tracker claims this key. | Ask an administrator to remove overlapping project or team scope, or correct the task attachment. |
| The tracker connection needs attention. | Ask an administrator to enable or reconnect the tracker under Connect or manage. |
| The tracker or GitHub couldn't be reached. Retrying. | Linking retries automatically. If it persists, check the source's status under Connect or manage. |
| More than one pull request uses this branch. | Link the session manually. |
| The branch's pull request closed before this session. | Start new work on a new branch, or link the session manually. |
| The pull request is too large to read reliably. | Link the session manually. |
| Sessions on shared branches like main aren't linked automatically. | Work on a task branch, or link the session manually. |
| The parent session isn't linked. | Link the parent session, or link this session manually. |
| This session isn't eligible for automatic linking. | Ask an administrator to check plan access, identity status, capture policy, retention and erasure rules. |
| The link to this task was removed. | Removed links stay removed. Link the session again manually if needed. |
| A suggested task is waiting for review. | Accept or reject the suggestion. |
| No branch was reported. | Run the session inside a Git repository with session sync enabled. |
| No reason recorded. | No reason was saved for this session, including sessions processed before reasons were stored. Link it manually. |
Sessions waiting for evidence are checked again every 15 minutes, and when a matching pull request arrives.
Require a task at commit
To require a task, install the commit check in each repository or worktree. It needs CLI 1.4.21 or later and supports OpenCode, Codex and Claude Code.
forgebench task commit install --tool opencode --url https://api.forgebench.aiRestart the coding client after installing. At git commit, the client asks
for a task ID in its own question prompt; a commit from a terminal prompts in
the terminal. ForgeBench checks the task against the connected tracker scope,
links every session that contributed to the staged changes, and adds
Refs: <task ID> to the commit message. Coding can start without a task.
This is local Git enforcement and can be bypassed by disabling Git hooks.
Remove it with forgebench task commit uninstall. The older before-work
forgebench task hooks and forgebench task set commands remain for existing
setups. Use the commit check for new ones.
Once captured sessions have linked, open Personal → Usage & costs → By task or Team → Economics → By task, subject to your workspace permissions. Connections opens the same source-management drawer from either view. Tasks appear after at least one confirmed session link. Unmatched sessions stay in ordinary session activity; the task table is not your tracker's full backlog.
Open a task title to inspect its sessions. Select a suggestion count to review pending associations. You can remove eligible links for sessions you own, or accept or reject suggestions. Required task context set by your coding client must be changed there. Explicit removals are preserved when evidence refreshes.
If a session stays unmatched, check that its repository and branch were captured,
the tracker scope includes the task, and any referenced pull request has been
imported from the connected repository. --no-meta omits the session context
needed for this path. OpenTelemetry usage alone may not include that context.
Check capture settings
before treating an unmatched session as missing work.
Read task usage
- Session tokens include confirmed and suggested sessions associated with the task. A session shared with another task can appear in both rows.
- Task cost estimate includes priced, confirmed sessions exclusive to that task. Suggested and shared sessions are excluded. Partial is the known attributable portion, not the full task cost.
- Unknown usage stays unknown. An unavailable estimate is not zero.
- Totals count shared and parent-inclusive usage once. Do not add task rows together; their sessions can overlap.
Select the usage help or warning icon beside search for How usage is counted and any capture limitations. Estimates are separate from provider invoices and subscription fees.
Average AI cost per task
In the task view, Average AI cost per task averages the estimated cost of tasks that have a reliable estimate: fully priced, confirmed sessions that belong to that task alone. It shows how many tasks are eligible and how many are excluded. It reads Unavailable when no task is eligible.
Why task costs are unavailable counts the excluded tasks by their primary reason, with a suggested action for each:
- without confirmed sessions: confirm the matching session on a task.
- with shared sessions: review sessions confirmed against more than one task. Shared cost is not allocated.
- with missing pricing: inspect the session's model and pricing evidence.
- with usage already included in a parent session: inspect the parent-session associations so usage isn't counted twice.
- with incomplete capture: review capture completeness before using the average.
The bars show counts of tasks, not cost.
Recorded outputs
Open a task title to see its detail. Recorded outputs lists the branches and pull requests linked to the task, then the outputs in time order, each with its kind and status, when it happened, and whether it was Provider observed or Source asserted. A suggested or reviewed link says so. With none recorded, it asks you to connect GitHub in Connections to collect pull request evidence.
Linked work by person
In the Team view, Linked work by person shows each person's linked sessions and their Unlinked AI estimate, the estimate for their captured sessions that aren't linked to a task. It appears only in the workspace view, and only when there are people to list.
To select a task from the command line before work starts, see
forgebench task.

