MCPcopy Index your code
hub / github.com/simstudioai/sim / fetchTransitions

Function fetchTransitions

apps/sim/tools/jira/get_transitions.ts:68–89  ·  view source on GitHub ↗
(cloudId: string)

Source from the content-addressed store, hash-verified

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

Callers 1

get_transitions.tsFile · 0.85

Calls 3

buildTransitionsUrlFunction · 0.85
textMethod · 0.80

Tested by

no test coverage detected