Search

Assign Issue

Last Updated: Mar 15, 2021

Articles

Use this function to assign the issue to a particular user.

Syntax

Assign Issue (token, url, username, issue_key, account_id)

Parameters

Input Parameter Name Description
token JIRA API token
url JIRA URL
username JIRA username
issue_key Key of the Issue
account_id Account ID of the assignee

You can find the Account ID in the URL when you login to your Atlassian account. The URL is of the format: https://<JIRA URL>/jira/people/<Account ID>.

To know more about token, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | Issue Assigned Successfully
  • On Failure returns 0 | Error Message

Sample

Assign Issue (ABCDCEF, https: //yourusername.atlassian.net, yourname@gmail.com, EX-30, 12345)

  • Uses the token ABCDEF to connect to JIRA with the url https: //yourusername.atlassian.net with the username yourname@gmail.com, assigns the issue EX-30 to the account with the ID 12345.
    Returns Issue Assigned Successfully on assigning the issue.

To view all the JIRA functions, click here.

Did you find what you were looking for?