Search

Add Comment

Last Updated: Nov 4, 2020

Articles

Use this function to add a new comment in the JIRA ticket.

Syntax

Add Comment (token, url, username, issue_key, comment)

Parameters

Input Parameter Name Description
token JIRA API token
url JIRA URL
username JIRA username
issue_key Key of the Issue
comment New comment

Returns

Return Value Description
Output
  • On Success: 1, Comment ID
  • On Failure: 0, Error Message

Sample

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

  • Uses the token ‘ABCDEF’ to connect to JIRA with the url ‘https: //yourusername.atlassian.net’ with the username ‘yourname@gmail.com’, adds the comment ‘New comment’ to the issue ‘EX-30’.
    Returns the ‘Comment ID’ of the added comment.

To view all the JIRA functions, click here.

Did you find what you were looking for?