Linear
Linear is a product development tool for planning and tracking issues, projects and cycles across teams. This Blackbird app lets you manage Linear issues, comments, links and files, issue relations, cycles, projects, users and labels, and start workflows when issues are created, updated or change status.
Before setting up
Section titled “Before setting up”Before you can connect you need to make sure that:
- You have a Linear account with access to the workspace you want to automate.
- You have a personal API key. In Linear, open Settings > Security & access > Personal API keys and create a new key. The app can access everything this key can access.
- To use events, the key must belong to a workspace admin, because only admins can create webhooks in Linear.
Connecting
Section titled “Connecting”- Navigate to Apps and search for Linear.
- Click Add connection.
- Name your connection for future reference, e.g. ‘My Linear workspace’.
- Fill in the API key you created in Linear.
- Click Connect.
Actions
Section titled “Actions”Issues
Section titled “Issues”- Get issue returns an issue’s ID, identifier, URL, title, Markdown description, team, status, labels, parent issue, project, cycle, priority, due date, creation and update dates, and the assignee’s and creator’s ID, name and email. The Issue ID input accepts both the issue ID and its identifier, for example
ENG-123. - Search issues returns all issues that match every filter you set. Available filters: team, project, parent issue, statuses, labels (an issue matches when it has at least one of the selected labels), assignee, priority, title contains, created after/before, updated after/before and Created in the last hours. Leave all filters empty to return every issue in the workspace.
- Create issue creates an issue in the selected team. Team ID and Title are required. Optionally set a Markdown description, project, parent issue, labels, assignee, due date, priority, cycle and status. When no status is set, the team’s default status is used.
- Update issue changes only the fields you fill in: status, assignee, due date, title, Markdown description, priority, parent issue, project or cycle. To remove a value, select the field in Fields to clear (assignee, due date, description, priority, parent issue, project or cycle). A field cannot have a new value and be cleared at the same time.
Priority values: 0 - No priority, 1 - Urgent, 2 - High, 3 - Medium, 4 - Low. In Search issues, priority 0 returns issues without a priority.
Comments
Section titled “Comments”- Get comment returns a comment’s ID, Markdown body, issue ID and identifier, author ID, name and email, and creation and update dates. Select an Issue ID first to choose the comment from that issue’s comments.
- Search comments returns the comments on an issue, including comments added inline on its description, optionally filtered by text contains, author and creation date. Use Sort order (newest first by default) and Limit to control the result. To get the latest matching comment, keep the newest first order and set Limit to
1. - Create comment adds a Markdown comment to an issue and returns the created comment.
- Update comment replaces the Markdown body of a comment.
- Delete comment deletes a comment.
Links and files
Section titled “Links and files”- Add link to issue attaches an external URL to an issue with a title and an optional description.
- Search issue attachments returns the links and files attached to an issue with their ID, title, description, URL and source. Optionally filter by Title contains or URL contains.
- Upload files to issue uploads one or more files to Linear and attaches them to the issue. It returns each file’s attachment ID, name, content type, size and Linear URL. Opening a Linear file URL requires access to the workspace.
Relations
Section titled “Relations”- Create issue relation links the issue to a related issue as Related to, Blocks, Blocked by or Duplicate of.
- Search related issues returns the issues related to an issue, with the relation type as seen from the selected issue (related, blocks, blocked_by, duplicate, duplicated_by or similar) and the direction:
outgoingwhen the relation was added on the selected issue andincomingwhen it was added on the other issue. Optionally filter by Title contains and Relation types.
Cycles
Section titled “Cycles”- Get cycle returns a cycle’s ID, number, name, description, team, start and end dates, completion date, progress and whether it is past, current or upcoming.
- Search cycles returns cycles filtered by team, name contains, number, Starts after, Ends before and Timing (past, current or upcoming).
- Find cycle by date returns the cycle of a team that covers a date, or nothing when no cycle covers it.
- Add issue to cycle moves an issue into a cycle and returns the updated issue.
Projects
Section titled “Projects”- Get project returns a project’s ID, name, description, URL, status, labels, teams, lead, members, start date, target date and all its issues.
- Search projects returns projects filtered by name contains, team, statuses, labels, lead, creation date and target date.
- Update project changes only the fields you fill in: name, description, status, lead, start date and target date.
- Get user returns a user’s ID, full name, display name, email, whether they are active and whether they are an admin.
- Find user returns the user with the exact email, or the exact full name or display name, ignoring capitalization. It returns nothing when no user matches.
- Search users returns users filtered by name contains, display name contains, email contains, team and Active. When Active is empty, both active and deactivated users are returned.
Labels
Section titled “Labels”- Add labels to issue adds labels to an issue and keeps its existing labels.
- Remove labels from issue removes labels from an issue and keeps its other labels.
- Get issue labels in group returns the labels of an issue that belong to a label group, for example the labels under Content Type.
Events
Section titled “Events”All events are webhook-based and are set up automatically when you publish the bird. Select a Team ID to only receive issues of that team. When it is empty, issues of all public teams trigger the event. Each event returns the same issue details as Get issue.
- On issue created triggers when an issue is created. Optionally filter by project and labels (the issue must have at least one of the selected labels).
- On issue updated triggers when an issue is updated. Optionally filter by project, a specific issue and Changed properties, for example only when the due date changes. The output also contains the names of the changed properties.
- On issue status changed triggers when an issue moves to another status. Optionally filter by project, previous statuses, new statuses and labels. The output also contains the previous status ID and name.
Feedback
Section titled “Feedback”Do you want to use this app or do you have feedback on our implementation? Reach out to us using the established channels or create an issue.