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

updateWorkflowTransitionProperty

Update workflow transition property

Details

  • Method: PUT
  • Path: /rest/api/3/workflow/transitions/{transitionId}/properties
  • Operation ID: updateWorkflowTransitionProperty

Parameters

{
  "transitionId": {
    "description": "The ID of the transition. To get the ID, view the workflow in text mode in the Jira admin settings. The ID is shown next to the transition.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "key": {
    "description": "The key of the transition property. Also known as the name of the transition property.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "workflowName": {
    "description": "The name of the workflow that the transition belongs to.",
    "required": true,
    "location": "query",
    "type": "string"
  },
  "workflowMode": {
    "description": "The workflow status. Set to `live` for inactive workflows or `draft` for draft workflows. Active workflows cannot be edited.",
    "required": false,
    "location": "query",
    "type": "string",
    "enum": [
      "live",
      "draft"
    ]
  },
  "id": {
    "description": "The ID of the transition property.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "value": {
    "description": "The value of the transition property.",
    "required": true,
    "location": "body",
    "type": "string"
  }
}

Response Schema

{
  "additionalProperties": true,
  "description": "Details about the server Jira is running on.",
  "properties": {
    "id": {
      "description": "The ID of the transition property.",
      "readOnly": true,
      "type": "string"
    },
    "key": {
      "description": "The key of the transition property. Also known as the name of the transition property.",
      "readOnly": true,
      "type": "string"
    },
    "value": {
      "description": "The value of the transition property.",
      "type": "string"
    }
  },
  "required": [
    "value"
  ],
  "type": "object"
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('jira')

# Call this tool
result = await agent.call_tool('updateWorkflowTransitionProperty', {
    # Add required parameters here
})