You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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"
}
comment_dict={}
comment_dict['project_name']=project_name
comment_dict['version']=release_label
comment_dict['envirnoment_name']=envirnoment_name
data = '{"body": comment_dict}'
jira_comment_url='https://jira.abc.net/rest/api/latest/issue/'+str(jira_tkt.upper())+'/comment'
print("jira comment url is",jira_comment_url)
response_8 = requests.post(jira_comment_url, headers=headers, data=data, auth=(username,password))
print(response_8)
If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events