- It files and edits specs, with
/specorouterlayer spec file. See Spec commands. - It files an issue for a problem. See Fix a problem.
- It moves an issue to in progress when a build starts. See When OuterLayer moves an issue.
- It replies with a comment when a label starts a build. See Replies need a write grant.
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.
Settings → Issue tracker, with GitHub built in and Linear and Jira ready to connect.
- Linear
- Jira
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.
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 theapp: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:
- On the connection’s card, choose Disconnect.
- Choose Connect Linear and approve the new permission.
- Choose the teams to read again.
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 filefiles there when you leave out--tracker. See Spec commands.
--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
ClosedorResolved.
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. TheOuterLayer 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.
- Linear: the
writescope. If the connection has no write access, disconnect Linear and connect it again. - Jira: the
write:jira-workscope, and the Browse projects and Transition issues project permissions for the service account.
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
writescope. - Jira: the
write:jira-workscope.
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 itsrepos.includelist skips such an item. - Pass
--tracker linearor--tracker jirawhen the factory has connected both trackers. A key likeENG-142does 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
- Add an issue from the tracker on the Work page.
- File and edit specs in the tracker.
