switchWorkflowSchemeForProject
Switch workflow scheme for project
Details
- Method:
POST - Path:
/rest/api/3/workflowscheme/project/switch - Operation ID:
switchWorkflowSchemeForProject
Parameters
{
"mappingsByIssueTypeOverride": {
"description": "The mappings for migrating issues from old statuses to new statuses when switching from one workflow scheme to another. This field is required if any statuses in the current project's workflows would no longer exist in the target workflow scheme. Each mapping defines how to update issues from an old status to the corresponding new status in the issueβs new workflow.",
"required": false,
"location": "body",
"type": "array"
},
"projectId": {
"description": "The ID of the project to switch the workflow scheme for",
"required": false,
"location": "body",
"type": "string"
},
"targetSchemeId": {
"description": "The ID of the target workflow scheme to switch to",
"required": false,
"location": "body",
"type": "string"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('switchWorkflowSchemeForProject', {
# Add required parameters here
})