Skip to content

Commit 4afd5c3

Browse files
authored
chore: add an example to jira_add_comment.py (#1540)
1 parent 77f79a2 commit 4afd5c3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/jira/jira_add_comment.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,14 @@
66
jira = Jira(url="https://jira.example.com/", username="gonchik.tsymzhitov", password="admin")
77

88
jira.issue_add_comment("TST-11098", "test rest api request")
9+
10+
""" How to add comment with link to another comment """
11+
12+
issue_id = "TST-101"
13+
comment_id = "10001"
14+
15+
new_comment_message = (
16+
f"Answering to [comment #{comment_id}|{jira.url}browse/{issue_id}?focusedCommentId={comment_id}] ..."
17+
)
18+
19+
jira.issue_add_comment(issue_id, new_comment_message)

0 commit comments

Comments
 (0)