# This code sample uses the 'requests' library:
# http://docs.python-requests.org
import requests
from requests.auth import HTTPBasicAuth
url = "http://{baseurl}/rest/agile/1.0/backlog/issue"
auth = HTTPBasicAuth("email@example.com", "<api_token>")
headers = {
"Content-Type": "application/json"
}
response = requests.request(
"POST",
url,
headers=headers,
auth=auth
)
print(response.text) |