Search

Add Comment

Last Updated: May 10, 2022

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

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

Add Comment (ABCDCEF, https: //yourusername.atlassian.net, yourname@gmail.com, EX-30, We are looking into this issue.)

  • Uses the token ABCDEF to connect to JIRA with the url https: //yourusername.atlassian.net with the username yourname@gmail.com, adds the comment We are looking into this issue. 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?