assignIssue
Assign issue
Details
- Method:
PUT - Path:
/rest/api/3/issue/{issueIdOrKey}/assignee - Operation ID:
assignIssue
Parameters
{
"issueIdOrKey": {
"description": "The ID or key of the issue to be assigned.",
"required": true,
"location": "path",
"type": "string"
},
"accountId": {
"description": "The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required in requests.",
"required": false,
"location": "body",
"type": "string"
},
"accountType": {
"description": "The user account type. Can take the following values:\n\n * `atlassian` regular Atlassian user account\n * `app` system account used for Connect applications and OAuth to represent external systems\n * `customer` Jira Service Desk account representing an external service desk",
"required": false,
"location": "body",
"type": "string",
"enum": [
"atlassian",
"app",
"customer",
"unknown"
]
},
"active": {
"description": "Whether the user is active.",
"required": false,
"location": "body",
"type": "boolean"
},
"appType": {
"description": "The app type of the user account when accountType is 'app'. Can take the following values:\n\n * `service` Service Account\n * `agent` Rovo Agent Account\n * `unknown` Unknown app type",
"required": false,
"location": "body",
"type": "string"
},
"applicationRoles": {
"description": "The application roles the user is assigned to.",
"required": false,
"location": "body",
"type": "string"
},
"avatarUrls": {
"description": "The avatars of the user.",
"required": false,
"location": "body",
"type": "string"
},
"displayName": {
"description": "The display name of the user. Depending on the user’s privacy setting, this may return an alternative value.",
"required": false,
"location": "body",
"type": "string"
},
"emailAddress": {
"description": "The email address of the user. Depending on the user’s privacy setting, this may be returned as null.",
"required": false,
"location": "body",
"type": "string"
},
"expand": {
"description": "Expand options that include additional user details in the response.",
"required": false,
"location": "body",
"type": "string"
},
"groups": {
"description": "The groups that the user belongs to.",
"required": false,
"location": "body",
"type": "string"
},
"key": {
"description": "This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.",
"required": false,
"location": "body",
"type": "string"
},
"locale": {
"description": "The locale of the user. Depending on the user’s privacy setting, this may be returned as null.",
"required": false,
"location": "body",
"type": "string"
},
"name": {
"description": "This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.",
"required": false,
"location": "body",
"type": "string"
},
"self": {
"description": "The URL of the user.",
"required": false,
"location": "body",
"type": "string"
},
"timeZone": {
"description": "The time zone specified in the user's profile. If the user's time zone is not visible to the current user (due to user's profile setting), or if a time zone has not been set, the instance's default time zone will be returned.",
"required": false,
"location": "body",
"type": "string"
}
}Response Schema
{}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('assignIssue', {
# Add required parameters here
})