Jira

Add Comment to Jira Issue

Adds a comment to an existing issue.

Unverified

What the model is told

Add a comment to a Jira issue, for example extra detail the customer has just given you. Only use an issue key the customer or an earlier step has given you. Confirm the wording with the customer first. Returns the new comment.

Request

POSThttps://YOUR_DOMAIN.atlassian.net/rest/api/3/issue/{{issueKey}}/comment

Headers

  • Content-Typeapplication/json
  • AuthorizationBasic YOUR_BASE64_EMAIL_AND_API_TOKEN

Body

{
  "body": {
    "type": "doc",
    "version": 1,
    "content": [
      {
        "type": "paragraph",
        "content": [
          {
            "type": "text",
            "text": "{{comment}}"
          }
        ]
      }
    ]
  }
}

Parameters

  • issueKey stringThe Jira issue key, for example SUP-123.
  • comment stringThe comment text.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "00c2729d-def5-4386-9915-6cc58d345e50",
    "type": "HTTP_REQUEST",
    "label": "Add Comment to Jira Issue",
    "name": "add_comment_to_jira_issue",
    "customName": false,
    "description": "Add a comment to a Jira issue, for example extra detail the customer has just given you. Only use an issue key the customer or an earlier step has given you. Confirm the wording with the customer first. Returns the new comment.",
    "parameters": [
      {
        "name": "issueKey",
        "type": "string",
        "description": "The Jira issue key, for example SUP-123."
      },
      {
        "name": "comment",
        "type": "string",
        "description": "The comment text."
      }
    ],
    "config": {
      "endpoint": {
        "method": "POST",
        "url": "https://YOUR_DOMAIN.atlassian.net/rest/api/3/issue/{{issueKey}}/comment"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "Basic YOUR_BASE64_EMAIL_AND_API_TOKEN"
        }
      ],
      "body": "{\n  \"body\": {\n    \"type\": \"doc\",\n    \"version\": 1,\n    \"content\": [\n      {\n        \"type\": \"paragraph\",\n        \"content\": [\n          {\n            \"type\": \"text\",\n            \"text\": \"{{comment}}\"\n          }\n        ]\n      }\n    ]\n  }\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.