(cloudId: string)
| 66 | |
| 67 | transformResponse: async (response: Response, params?: JiraGetTransitionsParams) => { |
| 68 | const fetchTransitions = async (cloudId: string) => { |
| 69 | const transitionsResponse = await fetch(buildTransitionsUrl(cloudId, params!.issueKey), { |
| 70 | method: 'GET', |
| 71 | headers: { |
| 72 | Accept: 'application/json', |
| 73 | Authorization: `Bearer ${params!.accessToken}`, |
| 74 | }, |
| 75 | }) |
| 76 | |
| 77 | if (!transitionsResponse.ok) { |
| 78 | const errorText = await transitionsResponse.text() |
| 79 | throw new Error( |
| 80 | parseAtlassianErrorMessage( |
| 81 | transitionsResponse.status, |
| 82 | transitionsResponse.statusText, |
| 83 | errorText |
| 84 | ) |
| 85 | ) |
| 86 | } |
| 87 | |
| 88 | return transitionsResponse.json() |
| 89 | } |
| 90 | |
| 91 | let data: any |
| 92 |
no test coverage detected