Create Linear Feed

Create Linear feed to ingest issues and issue attachments.

Graphlit supports ingesting issues and issue attachments from Linear.

The createFeed mutation enables the creation of a feed by accepting the feed name, type and issue feed parameters and it returns essential details, including the ID, name, state, and type of the newly generated feed.

You will need to opt-in to extracting issue attachments from issues, which will be ingested as new content objects, by assigning includeAttachments to true.

Reading issues from Linear requires a Linear API key, which must be requested by your application for the user's Linear account. Graphlit stores this API key, and will use it to authenticate to your user's Linear account.

Also, you will need to specify the Linear project name, where the issues can be found.

If you would like to read issues from multiple Linear projects, you can create multiple Linear feeds.

Mutation:

mutation CreateFeed($feed: FeedInput!) {
  createFeed(feed: $feed) {
    id
    name
    state
    type
  }
}

Variables:

{
  "feed": {
    "type": "ISSUE",
    "issue": {
      "type": "LINEAR",
      "includeAttachments": true,
      "linear": {
        "project": "redacted",
        "key": "redacted"
      },
      "readLimit": 50
    },
    "name": "Linear"
  }
}

Response:

{
  "type": "ISSUE",
  "id": "70cf882a-9cd9-45c1-b5a0-88606938248a",
  "name": "Linear",
  "state": "ENABLED"
}

Last updated