AttributeError: 'bytes' object has no attribute 'dumps'
mycomment = "Test comment"
issue_comment = json.dumps( {
"body": {
"content": [
{
"content": [
{
"text": mycomment,
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
})
Can you help me with how to pass a variable in this python dictionary?
Sounds like it is about decoding. You can check the link here, it might help.
Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.
Register now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.