On this page
Use case
Translate the description of the issue to English using the DeepL API.
Prerequisites
Configuration steps
Action
In Expert mode, create a new action with the following parameters:
Name
Enter Translate description as the name of the new action.
Method
Select the POST method.
Default connection
Select the connection with DeepL.
REST path.
Use the following REST path after replacing nnnnn-nnnnn with the authorization key from your DeepL account.
/translate?auth_key=nnnnn-nnnnn
Action body
Enter this action body.
{ "text": ["%{issue.description}"], "target_lang": "EN" }
The target language of the translation can be edited by changing the value of the "target_lang" key according to the DeepL specifications.
Update issue fields
Update a Text Field (multi-line).
Enter the following expression with the expression editor in General mode.
%{findReplaceAll(%{action.response.translations[*].text}, "/n", "//")}
Related examples
If you still have questions, feel free to refer to our support team.