import requests
import json
name = "abc"
url = f"https://jira.domain.com/rest/api/latest/issue/1343"
body = {"update": {"customfield_11744": [{"set": {"name": name}}]}}
r = requests.put(url, auth=('id','pw'), json=body)
print(r.status_code)
Hello @anne
If you read the Python examples provided in the REST API documentation, they show how to use the requests.HTTPBasicAuth
module to apply Base64 encoding to the username + token combination in the auth section of the header.
Also, what is the purpose of the letter 'f' before the url in your Python code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.