(
key: IntegrationTaskKey,
params: L.IssueCreateInput & { title: string }
)
| 820 | } |
| 821 | |
| 822 | createIssue( |
| 823 | key: IntegrationTaskKey, |
| 824 | params: L.IssueCreateInput & { title: string } |
| 825 | ): LinearReturnType<IssuePayload, "issue"> { |
| 826 | return this.runTask( |
| 827 | key, |
| 828 | async (client) => { |
| 829 | const payload = await client.createIssue(params); |
| 830 | return serializeLinearOutput(await payload.issue); |
| 831 | }, |
| 832 | { |
| 833 | name: "Create Issue", |
| 834 | params, |
| 835 | properties: [ |
| 836 | { label: "Team ID", text: params.teamId }, |
| 837 | { label: "Title", text: params.title }, |
| 838 | ], |
| 839 | } |
| 840 | ); |
| 841 | } |
| 842 | |
| 843 | deleteIssue( |
| 844 | key: IntegrationTaskKey, |
no test coverage detected