Open Context Protocol is live! 🚀 Read the launch post
getWorkflowSchemeDraftIssueType

getWorkflowSchemeDraftIssueType

Get workflow for issue type in draft workflow scheme

Details

  • Method: GET
  • Path: /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
  • Operation ID: getWorkflowSchemeDraftIssueType

Parameters

{
  "id": {
    "description": "The ID of the workflow scheme that the draft belongs to.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "issueType": {
    "description": "The ID of the issue type.",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "additionalProperties": false,
  "description": "Details about the mapping between an issue type and a workflow.",
  "properties": {
    "issueType": {
      "description": "The ID of the issue type. Not required if updating the issue type-workflow mapping.",
      "type": "string"
    },
    "updateDraftIfNeeded": {
      "description": "Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to `false`. Only applicable when updating the workflow-issue types mapping.",
      "type": "boolean"
    },
    "workflow": {
      "description": "The name 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('getWorkflowSchemeDraftIssueType', {
    # Add required parameters here
})