JIRA_TOKEN=\ API of User with org&site admin rights\
JIRA_USERNAME=user@plyme.com
JIRA_CREDENTIALS = “Basic ” + base64.b64encode(f”{USERNAME}:{TOKEN}“.encode(“ascii”)).decode(“ascii”)
URL = https://plyme.atlassian.net/rest/servicedeskapi/request
def publish_support_message(message, files):
user_email = message.get(‘email’)
headers = {
“Accept”: “application/json”,
“Content-Type”: “application/json”,
“Authorization”: JIRA_CREDENTIALS
}
payload = json.dumps({
“raiseOnBehalfOf”: user_email,
“serviceDeskId”: SuppC.SERVICEDESC_ID,
“requestTypeId”: _get_request_type_id_in_jira(message.get(‘type’)),
“requestFieldValues”: {
“summary”: message.get(‘subject’),
“description”: _get_description_for_publish(message)
}
})
response = requests.post(url=URL, data=payload, headers=headers)
We have JSM project where we collect request from our site Plyme.com. I created 3 lang for answer, tune email and lang templates for it. When request drop to system it can separate Ukr\Eng\rus. But answer on email customer get on language of user@plyme.com confg. And if customer change language in their profile from Auto to Eng, Ukr etc, he get template emails on lang of his profile.
Yes i readed articles:
https://community.atlassian.com/t5/Jira-Service-Management/How-to-set-Request-Language-for-requests-created-with-the-REST/qaq-p/1801609
https://community.atlassian.com/t5/Jira-Service-Management-articles/Language-Support-and-Request-language-field-on-Service/ba-p/1860874
And All included articles. But cant understand. We setup all step by step and cant found solution.