Get plugin driven options
POST/field/plugin-options
Function Overview
-
Retrieve dynamic option data generated by plugins for specific fields.
-
Provide the plugin with contextual information (issue type, task, project, etc.) to return context-aware options.
-
Support pagination when the option count is large.
Example
{
"field_uuid": "EGx9jsaH",
"pagination": {
"size": 50,
"page": 1
},
"context": {
"issue_type_uuid": "Cw2nMvjK",
"task_uuid": "MM3animjQM6WJUdD",
"project_uuid": "MM3animjuN9YpLGN"
}
}
Request
Query Parameters
The team ID
- application/json
Body
Field UUID
pagination
object
Pagination configuration
Default value: 20
Page size
Default value: 1
Page number
context
object
Context information passed to plugins
Issue type UUID
Task UUID
Project UUID
Responses
- 200
- 401
- 403
- 404
- 500
Request successful
Response Example
{
"result": "SUCCESS",
"data": {
"options": [
{
"uuid": "0000000N",
"value": "No"
},
{
"uuid": "0000000Y",
"value": "Yes"
}
],
"page_result": null
},
"error_code": ""
}
Field Description
-
options: Option list returned by the plugin -
page_result: Pagination result returned by the plugin (nullable) -
result: Request status,SUCCESSindicates success -
error_code: Error code when the request fails
- application/json
- Schema
- Example (from schema)
Schema
Request status
data
object
required
Response data returned by the plugin
Option list returned by the plugin
page_result
object
nullable
Pagination metadata returned by the plugin
Pagination metadata returned by the plugin
Error code when the request fails
{
"result": "string",
"data": {
"options": [
{}
],
"page_result": {}
},
"error_code": "string"
}
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}