Hi community,
I need to update the following jira property in my tickets:
"fields" : {"customfield_15035": [{"prop1": "xxxx", "prop2": "yyyy", "prop3": "zzzz"}]}
I tried to use the documentation code for Python, but I have not been able to adapt it.
Can someone please advice? How to change the customer field?, via payload?
Thanks
import requests
from requests.auth import HTTPBasicAuth
import json url = "https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey}"
auth = HTTPBasicAuth("email@example.com", "<api_token>")
headers = { "Accept": "application/json", "Content-Type": "application/json" }
payload = json.dumps( {} )
response = requests.request( "PUT", url, data=payload, headers=headers, auth=auth )
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))