Linear
One library covers a Linear workspace, optionally limited to some teams.
Get an API key
- In Linear, open Settings, then Account, then Security & access.
- Create a personal API key. Read access is enough. Linear lets you choose the key's permissions, and you can limit it to specific teams.
- Copy the key and paste it into Shoko.
Workspace admins can turn off member API keys, in which case an admin has to create the key.
The key acts with your access in Linear, and it stops working if your account is removed. Use an account that will stay.
In Shoko you can enter team keys such as ENG, OPS to index only those teams. Leave it empty for all teams the key can see.
What gets indexed
- Issues, with their description, up to 500 comments, and a header with team, status, priority, assignee, creator, project, cycle, labels and dates. Path:
ENG/ENG-123.md. - Projects, with their description and content. Path:
projects/<name>-<id>.md. - Documents. Path:
docs/<title>-<id>.md.
With team keys set, projects and documents are limited to those teams too.
What is skipped
Archived issues, projects and documents. Comments after the first 500 on an issue. Attachments and files. Anything the key cannot read.
How syncing works
Once a day Shoko reads every issue, project and document. Hourly and every-5-minutes libraries also ask Linear in between for what was updated since the last sync. That picks up new and edited items, archived and deleted issues (deleted issues sit in Linear's trash, which counts as archived), and issues moved to a team you did not select. Archived projects and documents are usually picked up too. Items deleted for good, items moved out of the selected teams other than issues, and anything the key can no longer read leave search at the next daily full sync, within a day. See Sync and limits.
Permissions
Anyone you grant this library to can search all of it, including issues from teams they cannot see in Linear. See Teams and access.