You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
To give more context I am asking this question again. I am using version 2 API as noted in error below. I am able to create a single line description with just a string. When I start to follow the documentation below I receive error.
I've attempted to try the solution here https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/
I added this to the description of my python code snippet below but I am still receiving HTTPError: 400 Client Error: for url: https://jira.<domain>.com/jiradc/rest/api/2/issue?updateHistory=false
My code below. I've simplified this for trail and error just to test if it will work to call the JIRA API. Originally it was longer but I still receive error only when adding this to description.
issue_dict = {
"project": {
"id": '123'
},
"summary": "test summary 3",
"reporter": {"name": "id"},
"issuetype": {"name": "Task"},
"priority": {
"name": "Critical"
},
"description": {
"version": 1,
"type": "doc",
"content": []
}
}
Has anyone been able to successfully create a JIRA ticket with multiple lines in the description or details?
Also is there any additional documentation aside from what's provided in this post for including this in the python-api for jira?
Hi @Mont
Have you try using "\n" for new line ?
Also I don't think you need to use the type etc..
"description": "1er line \n 2nd line"
Maybe "\\n"
Regards
Solution provided to OP in this thread.
OP is reading the wrong documentation for their Jira product.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.