Skip to content

Atlassian: Assign issue

Atlassian issues.assignIssue: arguments, response, policy and SDK examples.

← Issues operations · Get started

Operation atlassian.assignissue

Provider route: PUT /{cloudId}/rest/api/3/issue/{issueIdOrKey}/assignee. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["issues"]["assignIssue"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.issues.assignIssue(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.issues.assign_issue(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
path.issueIdOrKeystringRequired within parent
bodyModelRequired within parentExpand Assign issue — request body — body

Referenced models: Assign issue — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$nullRoot
Assign issue — request body — body
FieldTypePresenceDescription and constraints
$objectRootA user with details as permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions:

* User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, `displayName` provides an indication and other parameters have default values or are blank (for example, email is blank).
* User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, `accountId` returns *unknown* and all other parameters have fallback values.
* User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.
Additional keys: not allowed
accountIdstringOptionalThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required in requests.
Maximum length: 128
accountTypestringOptionalThe user account type. Can take the following values:

* `atlassian` regular Atlassian user account
* `app` system account used for Connect applications and OAuth to represent external systems
* `customer` Jira Service Desk account representing an external service desk
One of: atlassian, app, customer, unknown
Read only: true
activebooleanOptionalWhether the user is active.
Read only: true
appTypestringOptionalThe app type of the user account when accountType is 'app'. Can take the following values:

* `service` Service Account
* `agent` Rovo Agent Account
* `unknown` Unknown app type
Read only: true
applicationRolesModelOptionalExpand Assign issue — request body — body application Roles
The application roles the user is assigned to.
Read only: true
avatarUrlsModelOptionalExpand Assign issue — request body — body avatar Urls
The avatars of the user.
Read only: true
displayNamestringOptionalThe display name of the user. Depending on the user’s privacy setting, this may return an alternative value.
Read only: true
emailAddressstringOptionalThe email address of the user. Depending on the user’s privacy setting, this may be returned as null.
Read only: true
expandstringOptionalExpand options that include additional user details in the response.
Read only: true
groupsModelOptionalExpand Assign issue — request body — body groups
The groups that the user belongs to.
Read only: true
guestbooleanOptionalWhether the user is a guest.
Read only: true
keystringOptionalThis 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.
localestringOptionalThe locale of the user. Depending on the user’s privacy setting, this may be returned as null.
Read only: true
namestringOptionalThis 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.
selfstringOptionalThe URL of the user.
Format: uri
Read only: true
timeZonestringOptionalThe 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.
Read only: true

Referenced models: Assign issue — request body — body avatar Urls, Assign issue — request body — body application Roles, Assign issue — request body — body groups

Assign issue — request body — body avatar Urls
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
16x16stringOptionalThe URL of the item's 16x16 pixel avatar.
Format: uri
24x24stringOptionalThe URL of the item's 24x24 pixel avatar.
Format: uri
32x32stringOptionalThe URL of the item's 32x32 pixel avatar.
Format: uri
48x48stringOptionalThe URL of the item's 48x48 pixel avatar.
Format: uri
Assign issue — request body — body application Roles
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
callbackModelOptionalExpand Assign issue — request body — body groups callback
itemsarrayOptional
items[]ModelEach itemExpand Assign issue — request body — body application Roles items item
max-resultsintegerOptionalFormat: int32
pagingCallbackModelOptionalExpand Assign issue — request body — body groups callback
sizeintegerOptionalFormat: int32

Referenced models: Assign issue — request body — body application Roles items item, Assign issue — request body — body groups callback

Assign issue — request body — body groups
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
callbackModelOptionalExpand Assign issue — request body — body groups callback
itemsarrayOptional
items[]ModelEach itemExpand Send notification for issue — request body — body to groups item
max-resultsintegerOptionalFormat: int32
pagingCallbackModelOptionalExpand Assign issue — request body — body groups callback
sizeintegerOptionalFormat: int32

Referenced models: Assign issue — request body — body groups callback, Send notification for issue — request body — body to groups item

Assign issue — request body — body application Roles items item
FieldTypePresenceDescription and constraints
$objectRootDetails of an application role.
Additional keys: not allowed
defaultGroupsarrayOptionalThe groups that are granted default access for this application role. As a group's name can change, use of `defaultGroupsDetails` is recommended to identify a groups.
Unique items: true
defaultGroups[]stringEach item
defaultGroupsDetailsarrayOptionalThe groups that are granted default access for this application role.
defaultGroupsDetails[]ModelEach itemExpand Send notification for issue — request body — body to groups item
definedbooleanOptionalDeprecated.
groupDetailsarrayOptionalThe groups associated with the application role.
groupDetails[]ModelEach itemExpand Send notification for issue — request body — body to groups item
groupsarrayOptionalThe groups associated with the application role. As a group's name can change, use of `groupDetails` is recommended to identify a groups.
Unique items: true
groups[]stringEach item
hasUnlimitedSeatsbooleanOptional
keystringOptionalThe key of the application role.
namestringOptionalThe display name of the application role.
numberOfSeatsintegerOptionalThe maximum count of users on your license.
Format: int32
platformbooleanOptionalIndicates if the application role belongs to Jira platform (`jira-core`).
remainingSeatsintegerOptionalThe count of users remaining on your license.
Format: int32
selectedByDefaultbooleanOptionalDetermines whether this application role should be selected by default on user creation.
userCountintegerOptionalThe number of users counting against your license.
Format: int32
userCountDescriptionstringOptionalThe [type of users](https://confluence.atlassian.com/x/lRW3Ng) being counted against your license.

Referenced models: Send notification for issue — request body — body to groups item

Assign issue — request body — body groups callback
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
Send notification for issue — request body — body to groups item
FieldTypePresenceDescription and constraints
$objectRootDetails about a group.
Additional keys: not allowed
groupIdJSONOptional
groupId (anyOf 1)stringAlternativeThe ID of the group, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*.
groupId (anyOf 2)nullAlternative
namestringOptionalThe name of group.
selfstringOptionalThe URL for these group details.
Format: uri
Read only: true

SDK function policy ID: atlassian.assignissue. Catalog operation: assignissue. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["write:jira-work"]

No-content response statuses: [204]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.