Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How insert lists via JIRA api (Python library)

Robert Cuellari August 6, 2020

When adding a line break within the description for an issue, I use

\n

What do I need to do to do things like this:

  • point one
    • sub point
  • point two
    • sub point a
    • sub point b

Any help would be appreciated

1 answer

1 accepted

0 votes
Answer accepted
Robert Cuellari August 7, 2020

I actually figured out a workaround instead of using a Jira library, I decided to just use the requests library instead.

For what it's worth:

set up a variable first for your json.  what i did was i created a ticket, then used postman to get the JSON payload and edit it to just the part i'd like to update (the fields -> description)

import requests

//(if you need it also import json

url = 'https://YOURJIRADOMAIN/rest/api/3/issue/' + 'YOURISSUEKEY'
headers = {'user': 'EMAILADDRESS:PASSWORD', "Content-Type": "application/json", 'accept':'application/json', 'Authorization': 'Basic USEYOURTOKENHERE'}
response = requests.request("PUT", url, json=payload,headers=headers)

 

-Rob

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events