Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to edit/update comment in Jira(Python)

I am trying to edit a comment in jira using jira-python, but I couldnt find anything.

I know Add_comment will add a comment, but I also want to know how to edit a comment. thanks~!!

2 answers

1 accepted

0 votes
Answer accepted
Shaun S Atlassian Team Oct 19, 2017

You can edit a comment by first getting the comment ID. If you hover over the link icon of a comment(see screenshot) the ID should be contained in the link URL. commentID.png

With the commentID you can then update the comment

jira_options={'server': 'http://<jira_url>'}

comment = jira.comment('ALPHA-27', '10100')
comment.update(body = 'the text here will replace the text in the comment')

I'm sure there is a more streamlined method of obtaining the comment ID, but that should work for the sake of testing. 

when I edit a customfield, it returns

response text = {"errorMessages":["Internal server error"],"errors":{}}


do you know how to fix this?@Shaun Seaver

did you get anywhere with this? i am having the same issue.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you