Search

Update Comment

Last Updated: Feb 14, 2022

Articles

Use this function to update a comment in the JIRA ticket.

Syntax

Update Comment (token, url, username, issue_key, comment_id, comment)

Parameters

Input Parameter Name Description
token JIRA API token
url JIRA URL
username JIRA username
issue_key Key of the Issue
comment_id ID of the comment to be updated
comment New comment

To know more about token, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | Comment ID
  • On Failure returns 0 | Error Message

Sample

Update Comment (ABCDCEF, https: //yourusername.atlassian.net, yourname@gmail.com, EX-30, CMT-23, New comment)

  • Uses the token ABCDEF to connect to JIRA with the url https: //yourusername.atlassian.net with the username yourname@gmail.com, updates the comment with ID CMT-23 to New comment in the issue EX-30.
    Returns the Comment ID of the updated comment.

To view all the JIRA functions, click here.

Did you find what you were looking for?