JiraAddComment
Use this script to add a comment with a tag (the "Comment tag to Jira" defined in the instance configuration) as an entry in XSOAR, which will then be mirrored as a comment to a Jira issue. This script should be run within an incident.
python · Atlassian Jira
Details
| ID | JiraAddComment |
|---|---|
| Language | python |
| From Version | 6.8.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
README
Use this script to add a comment with a tag (the “Comment tag to Jira” defined in the instance configuration) as an entry in XSOAR, which will then be mirrored as a comment to a Jira issue. This script should be run within an incident.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.8.0 |
Inputs
| Argument Name | Description |
|---|---|
| comment | comment to be added to the Jira issue. |
| tags | The comment tag. Use the comment entry tag (defined in your instance configuration) to mirror the comment to Jira. |
Outputs
There are no outputs for this script.
def test_add_comment_as_note(): """Test if the correct arguments are given to the CommandResults object when adding a comment as a note. """ from JiraAddComment import add_comment result = add_comment({"comment": "New comment", "tags": "comment tag to Jira"}) assert result.readable_output == "New comment" assert result.tags == ["comment tag to Jira"] assert result.mark_as_note