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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,203
Community Members
 
Community Events
184
Community Groups

Posting comment to Jira ticket in python

It is almost amusing, and yet frustrating.

url = {baseurl}/rest/api/latest/issue/{issueKey}/comment
body = {"body": "To change the way a picture fits .."}
r =  self.session.post(url=url, data=data), verify=False)

response

{"errorMessages":["Unexpected character ('b' (code 98)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: com.itlab.jira.plugins.extender.helper.RequestWrapper$1@537622; line: 1, column: 2]"]}

 What on God's green earth does it even mean?

2 comments

Ah, nevermind, it has to be a string (not json).

DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 03, 2019

Yup! you got that right.

@DPKJ : can I post HTML string and parse it as wiki string?

DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 24, 2020

@Gokul Ramanan I don't think that is possible. You have to send format accepted by comment field only otherwise it will get converted to text.

Comment

Log in or Sign up to comment