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

Function fetchProject

apps/sim/tools/jira/get_project.ts:65–82  ·  view source on GitHub ↗
(cloudId: string)

Source from the content-addressed store, hash-verified

63
64 transformResponse: async (response: Response, params?: JiraGetProjectParams) => {
65 const fetchProject = async (cloudId: string) => {
66 const projectResponse = await fetch(buildProjectUrl(cloudId, params!.projectId), {
67 method: 'GET',
68 headers: {
69 Accept: 'application/json',
70 Authorization: `Bearer ${params!.accessToken}`,
71 },
72 })
73
74 if (!projectResponse.ok) {
75 const errorText = await projectResponse.text()
76 throw new Error(
77 parseAtlassianErrorMessage(projectResponse.status, projectResponse.statusText, errorText)
78 )
79 }
80
81 return projectResponse.json()
82 }
83
84 let data: any
85

Callers 1

get_project.tsFile · 0.70

Calls 3

buildProjectUrlFunction · 0.85
textMethod · 0.80

Tested by

no test coverage detected