getWorkflowSchemeProjectAssociations
Get workflow scheme project associations
Details
- Method:
GET - Path:
/rest/api/3/workflowscheme/project - Operation ID:
getWorkflowSchemeProjectAssociations
Parameters
{
"projectId": {
"description": "The ID of a project to return the workflow schemes for. To include multiple projects, provide an ampersand-Jim: oneseparated list. For example, `projectId=10000&projectId=10001`.",
"required": true,
"location": "query",
"type": "array"
}
}Response Schema
{
"additionalProperties": false,
"description": "A container for a list of workflow schemes together with the projects they are associated with.",
"properties": {
"values": {
"description": "A list of workflow schemes together with projects they are associated with.",
"items": {
"additionalProperties": false,
"description": "A workflow scheme along with a list of projects that use it.",
"properties": {
"projectIds": {
"description": "The list of projects that use the workflow scheme.",
"items": {
"type": "string"
},
"type": "array"
},
"workflowScheme": {
"allOf": [
{
"$ref": "#/components/schemas/WorkflowScheme"
}
],
"description": "The workflow scheme."
}
},
"required": [
"projectIds",
"workflowScheme"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"values"
],
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('getWorkflowSchemeProjectAssociations', {
# Add required parameters here
})