replaceCustomFieldOption
Replace custom field options
Details
- Method:
DELETE - Path:
/rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}/issue - Operation ID:
replaceCustomFieldOption
Parameters
{
"replaceWith": {
"description": "The ID of the option that will replace the currently selected option.",
"required": false,
"location": "query",
"type": "integer",
"format": "int64"
},
"jql": {
"description": "A JQL query that specifies the issues to be updated. For example, *project=10000*.",
"required": false,
"location": "query",
"type": "string"
},
"fieldId": {
"description": "The ID of the custom field.",
"required": true,
"location": "path",
"type": "string"
},
"optionId": {
"description": "The ID of the option to be deselected.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
},
"contextId": {
"description": "The ID of the context.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('replaceCustomFieldOption', {
# Add required parameters here
})