Search

Update Status

Last Updated: Dec 28, 2022

Articles

Use this function to change the status of the ticket.

Syntax

Update Status (token, url, username, issue_key, status_id)

Parameters

Input Parameter Name Description
token JIRA API token
url JIRA URL
username JIRA username
issue_key Key of the Issue
status_id ID of the status to be updated

To know more about token, click here.

To find the Status ID,

  1. Click the Settings icon on the Dashboard.
  2. Select the Issues option.
  3. In the left section, scroll to find the Statuses option and click on it.
  4. Click the Edit option against the required status.
  5. At the bottom of the page, the ID is displayed at the end of the URL. https://<JIRA URL>/secure/admin/EditStatus!default.jspa?id=1

Returns

Return Value Description
Output
  • On Success returns 1 | Status Updated Successfully
  • On Failure returns 0 | Error Message

Sample

Update Status (https: //yourusername.atlassian.net, ABCDCEF, yourname@gmail.com, EX-30, 3)

  • Uses the token ABCDEF to connect to JIRA with the url https: //yourusername.atlassian.net with the username yourname@gmail.com, updates the status with ID 3 in the issue EX-30.
    Returns Status Updated Successfully on updating the status.

To view all the JIRA functions, click here.

Did you find what you were looking for?