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

add dynamic comments in jira

hi folks,


i m getting 400 response while adding comment.

basically i want to add dictionary key,values as a comment.

Can you pls help me on this ?


headers = {
"Accept": "application/json",
"Content-Type": "application/json"

data = '{"body": comment_dict}'
print("jira comment url is",jira_comment_url)
response_8 =, headers=headers, data=data, auth=(username,password))

1 answer

Hi @anil kumar I'm not sure, what programming language you use. But it seems to mee that you create map comment_dict and you send it as a body. But you need to add body as String as described here: So instead of creating a map, you need to join some Strings together...

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