0

Get Issue

by
Published May 7, 2024

Get an issue by ID. See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)

Script linear
  • Submitted by hugo697 Bun
    Created 515 days ago
    1
    import { LinearClient } from '@linear/sdk'
    2
    
    
    3
    type Linear = {
    4
    	apiKey: string
    5
    }
    6
    
    
    7
    export async function main(resource: Linear, issueId: string) {
    8
    	const linearClient = new LinearClient({ apiKey: resource.apiKey })
    9
    
    
    10
    	const getIssue = await linearClient.issue(issueId)
    11
    
    
    12
    	return getIssue
    13
    }
    14