get_all_statuses
Retrieve all statuses from Jira using the /rest/api/3/status API to monitor workflows and project progress efficiently.
Instructions
Get all the status on Jira on the api /rest/api/3/status. Do not use markdown in your query.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number_of_results | No | Number of results to return |
Implementation Reference
- src/index.ts:867-882 (handler)Handler for 'get_all_statuses' tool in the CallToolRequestSchema request handler. Extracts arguments, calls getAllStatus helper, and returns JSON response.case 'get_all_statuses': { const number_of_results = Number( request.params.arguments?.number_of_results ?? 50, ); const response = await getAllStatus(number_of_results); return { content: [ { type: 'text', text: JSON.stringify(response, null, 2), }, ], }; }
- src/index.ts:652-670 (helper)Core helper function that performs the API call to retrieve statuses from Jira's /rest/api/3/status endpoint.async function getAllStatus(number_of_results: number): Promise<any> { try { const params = { maxResults: number_of_results, // Adjust as needed }; const response = await axios.get(`${JIRA_URL}/rest/api/3/status`, { headers: getAuthHeaders().headers, params, }); return response.data; } catch (error: any) { //return the error in a json return { error: error.response.data, }; } }
- src/index.ts:192-206 (registration)Tool registration in ListToolsRequestSchema handler, defining name, description, and input schema.{ name: 'get_all_statuses', description: 'Get all the status on Jira on the api /rest/api/3/status. Do not use markdown in your query.', inputSchema: { type: 'object', properties: { number_of_results: { type: 'integer', description: 'Number of results to return', default: 1, }, }, }, },
- src/index.ts:196-205 (schema)Input schema definition for the 'get_all_statuses' tool.inputSchema: { type: 'object', properties: { number_of_results: { type: 'integer', description: 'Number of results to return', default: 1, }, }, },