getWorkflowProjectIssueTypeUsages
Get issue types in a project that are using a given workflow
Details
- Method:
GET - Path:
/rest/api/3/workflow/{workflowId}/project/{projectId}/issueTypeUsages - Operation ID:
getWorkflowProjectIssueTypeUsages
Parameters
{
"workflowId": {
"description": "The workflow ID",
"required": true,
"location": "path",
"type": "string"
},
"projectId": {
"description": "The project ID",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
},
"nextPageToken": {
"description": "The cursor for pagination",
"required": false,
"location": "query",
"type": "string"
},
"maxResults": {
"description": "The maximum number of results to return. Must be an integer between 1 and 200.",
"required": false,
"location": "query",
"type": "integer",
"format": "int32"
}
}Response Schema
{
"additionalProperties": false,
"description": "Issue types associated with the workflow for a project.",
"properties": {
"issueTypes": {
"additionalProperties": false,
"description": "A page of issue types.",
"properties": {
"nextPageToken": {
"description": "Token for the next page of issue type usages.",
"type": "string"
},
"values": {
"description": "The list of issue types.",
"items": {
"additionalProperties": false,
"description": "The issue type.",
"properties": {
"id": {
"description": "The ID of the issue type.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"projectId": {
"description": "The ID of the project.",
"type": "string"
},
"workflowId": {
"description": "The ID of the workflow.",
"type": "string"
}
},
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('getWorkflowProjectIssueTypeUsages', {
# Add required parameters here
})