linear-sync icon indicating copy to clipboard operation
linear-sync copied to clipboard

Synced Linear issues should have an `Issue Attachment` to the related Github issue

Open janbaykara opened this issue 3 years ago • 1 comments

I'm not exactly sure how, but Linear's github import tool and synclinear.com both manage to append these nice, official "Github issue" links to the bottom of the Linear issue description:

Screenshot 2022-10-19 at 16 29 47

By comparison, this tool only adds the link inside the rich text description. Whilst this is functionally fine, it's not quite as slick. The affordance of the button and consistent UI will make the UX this tool provides a bit nicer.

Screenshot 2022-10-19 at 16 45 38

janbaykara avatar Oct 19 '22 15:10 janbaykara

OK, the way they do this is by adding an Issue Attachment via the API, to the relevant Github URL and with some nice labelling. This is pretty neat and linear-sync.com could definitely employ the method.

I think it'd be nice if we had the same situation as the screenshot above, so:

attachmentCreate(input:{
    issueId: "<LINEAR_ISSUE_ID>",
    title: "Github Issue <GITHUB_ISSUE_ID>",
    subtitle: "Synchronised",
    url: "<GITHUB_ISSUE_URL>",
    iconUrl: "https://exception.com/assets/icon.png"
    metadata: { issueId: "<GITHUB_ISSUE_ID>", repoID: "<GITHUB_REPO_ID>", teamID: "<GITHUB_TEAM_ID>", etc. }
  })

https://developers.linear.app/docs/graphql/attachments

janbaykara avatar Oct 19 '22 15:10 janbaykara