Skip to main content
Connect Linear or Jira so that its issues appear in Add work, beside the GitHub ones. A work item made from one keeps its Linear or Jira key. You still need the repository connection. Pull requests, GitHub checks and the judges come from GitHub, whatever tracker holds the issue. GitHub issues come through that connection and need no tracker. OuterLayer also writes to the tracker in these ways: OuterLayer never assigns or closes an issue. People close issues in the tracker.

Before you start

On the factory, you need the Connect a tracker permission. The Owner, Admin and Write roles have it. You also need these rights in the tracker:
  • Linear: you are an admin of the workspace, so you can authorize an application on it.
  • Jira: you can create credentials for a service account in Atlassian Administration. You also hold the Administer Jira permission, which you need to create a webhook.

Connect the tracker

Open the factory’s Settings → Issue tracker.
The Issue tracker settings page listing GitHub as in use, with Connect Linear and Connect Jira buttons and the default tracker for new issues

Settings → Issue tracker, with GitHub built in and Linear and Jira ready to connect.

1

Authorize the workspace

Choose Connect Linear. Linear asks you to give OuterLayer write access to a workspace. Authorize a workspace that has at least one team.
2

Choose the teams to read

The Teams to read dialog lists the workspace’s teams. Select the teams whose issues you want in Add work. Then choose Save.To change the teams later, choose Change on the connection’s card.
Linear sends issue changes to OuterLayer from then on. You set up no webhook.

Let members assign issues in Linear

Members start a build by assigning an issue to OuterLayer. See Start a build by assigning an issue. Linear lists OuterLayer in the assignee menu only when the connection holds the app:assignable permission. A connection made before this permission existed lacks it. Its card says Reconnect to allow assigning issues to OuterLayer. To add the permission:
  1. On the connection’s card, choose Disconnect.
  2. Choose Connect Linear and approve the new permission.
  3. Choose the teams to read again.
Work items already on the Work page stay as they are. If you run your own OuterLayer, turn on agent session events in your Linear application. Open the application’s settings in Linear, then select Agent session events under Webhooks. Without this setting, Linear sends no event when a member assigns an issue.

Let members assign work items in Jira

Members start a build by assigning a work item to the service account of the Jira connection. The service account is the account whose credential you gave OuterLayer. Give it the Assignable User project permission on each project you list. Without it, Jira does not offer the account in the Assignee field. OuterLayer reads the account’s id when you connect. A Jira connection made earlier may lack the id. Disconnect Jira and connect it again to store it. When the factory has no default tracker, the connect dialog offers File new issues in Linear by default, or the same for Jira. The box starts selected. See Choose where new issues go. A factory holds at most one Linear connection and one Jira connection.

Choose where new issues go

A factory with a linked repository and a connected tracker can file new issues in more than one place. Default tracker for new issues, on Settings → Issue tracker, sets the tracker to use when nobody names one. The setting lists each tracker the factory can file in, and Ask each time. To change it, you need the Change the tracker connection permission. The Owner, Admin and Write roles have it. The default applies in two places:
  • The dialog that files an issue for a problem starts with that tracker selected. See Fix a problem.
  • outerlayer spec file files there when you leave out --tracker. See Spec commands.
You can always choose another tracker in the dialog or with --tracker. If you disconnect the default tracker, the setting returns to Ask each time.

Issues on the Work page

Two cases do not close an item. Choose Remove from Work on the item to take it off the Work page:
  • Linear: a canceled issue, which includes a state named Duplicate.
  • Jira: a workflow that ends in a status with another name, such as Closed or Resolved.
A work item from any tracker gets a number on the factory. Commands such as outerlayer work status --item <number> take that number. OuterLayer reads each issue’s labels and keeps them current. You can filter by label on the Work page and in Add work. See The Work list. A build reads the issue from OuterLayer’s copy, so a build needs no tracker credential.

Private issues and public repositories

An issue can ask for evidence in a checklist. See Ask for evidence in an issue. The OuterLayer evidence status check on the pull request lists a failing ask by its text. On a public repository, the status check lists only the asks of an issue in that same repository. The evidence comment shows no text from the issue. So the contents of a private issue do not become public.

When OuterLayer moves an issue

When a build starts on a work item, OuterLayer moves its Linear or Jira issue to in progress. GitHub issues are only open or closed, so OuterLayer moves nothing there. OuterLayer moves an issue only out of a state that has not started:
  • Linear: the state type is Triage, Backlog or Unstarted. The issue moves to the team’s first state of type Started, in the order the board shows.
  • Jira: the status category is To Do. The issue takes the first transition that leads to a status in the In Progress category. OuterLayer skips a transition that needs a field.
An issue that is in progress, in review or done stays where it is. OuterLayer does not move an issue back when a build fails or stops. People decide when an issue is in review or done. If OuterLayer cannot move the issue, the build continues and the issue stays where it is. The move needs these rights:
  • Linear: the write scope. If the connection has no write access, disconnect Linear and connect it again.
  • Jira: the write:jira-work scope, and the Browse projects and Transition issues project permissions for the service account.
A connection without write access also cannot file specs. outerlayer spec file then fails with tracker_write_not_permitted.

Replies need a write grant

When a member adds a label that starts a build, OuterLayer replies with a comment on the issue. See Start a build with a label. To post the comment, the connection needs write access:
  • GitHub: the OuterLayer GitHub App’s Issues permission set to read and write. An admin of the GitHub organization approves it. Filing a spec in GitHub needs the same permission.
  • Linear: the write scope.
  • Jira: the write:jira-work scope.
Without write access, OuterLayer posts no comment. It still records the build request.

Build a Linear or Jira issue from the terminal

outerlayer work build takes a Linear or Jira key:
  • Pass --repo <owner/name> to name the repository the work goes into. Without it, the build uses the factory’s first connected repository. A runner that builds only the repositories in its repos.include list skips such an item.
  • Pass --tracker linear or --tracker jira when the factory has connected both trackers. A key like ENG-142 does not say which tracker holds it.
outerlayer work status and outerlayer work remove take the key too: outerlayer work status --issue ENG-142. See Work commands for every flag.

Disconnect a tracker

Choose Disconnect on the connection’s card. You need the Owner or Admin role. OuterLayer then reads nothing more from the tracker. Items already on the Work page stay as they are, and they get no more updates from the tracker.

Next steps