Search

Update Issue

Last Updated: Nov 26, 2021

Articles

Use this function to update the fields related to a JIRA issue.

Syntax

Update Issue (token, url, username, issue_key, summary, description, environment, issue_type, assignee, labels, priority)

Parameters

Input Parameter Name Description
token JIRA API token
url JIRA URL
username JIRA username
issue_key Key of the Issue
summary Ticket summary
description Ticket description
environment Example: QA, PROD etc.
issue_type Type of the issue
Example: Bug, Task, Test, Epic, etc.,
assignee ID of the assignee
labels Label(s) to attach with the issue
priority Issue priority

  • To know more about token, click here.
  • You can find the Assignee ID in the URL when you login to your Atlassian account. The URL is of the format: https://<JIRA URL>/jira/people/<Assignee ID>.

Returns

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

Sample

Update Issue (ABCDCEF, https: //yourusername.atlassian.net, yourname@gmail.com, Ex-30, Summary, Issues in JIRA, QA, Bug, 12345, Issue, P3)

  • Uses the token ABCDEF to connect to JIRA with the url https: //yourusername.atlassian.net with the username yourname@gmail.com, updates the issue EX-30 with the description Issues in JIRA and summary Summary in the QA environment with priority P3, type Bug and label Issue and assigns it to the ID 12345.
    Returns Issue Updated Successfully on updating the issue.

To view all the JIRA functions, click here.

Did you find what you were looking for?