Skip to content

chore: add an example to jira_add_comment.py #1540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/jira/jira_add_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,14 @@
jira = Jira(url="https://jira.example.com/", username="gonchik.tsymzhitov", password="admin")

jira.issue_add_comment("TST-11098", "test rest api request")

""" How to add comment with link to another comment """

issue_id = "TST-101"
comment_id = "10001"

new_comment_message = (
f"Answering to [comment #{comment_id}|{jira.url}browse/{issue_id}?focusedCommentId={comment_id}] ..."
)

jira.issue_add_comment(issue_id, new_comment_message)
Loading