Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Panel

On this page

Table of Contents
exclude(On this page|Use case).*
typeflat
separatorpipe

UI Text Box
sizemedium
typeinfo

Use case

Translate the description of the issue to English using the DeepL REST API.

Prerequisites

UI Expand
titleConnection with DeepL
UI Steps
UI Step
In Jira administration > Manage apps > Remote actions > Connections, create a new connection and name it. 

UI Step

Set the following base URL.

Code Block
languagebash
linenumberstrue
https://api-free.deepl.com/v2
UI Text Box
typetip

 If you are already have a DeepL API Pro plan, use the following base URL instead.

Code Block
languagebash
linenumberstrue
https://api.deepl.com/v2
UI Step
 Select No authentication as authentication method.


Configuration steps

UI Steps
UI Step
Add the Execute remote action post function to the transition of your choice.
UI Step
UI Steps

Action

In Expert mode, create a new action with the following parameters:

UI Step

Name

Enter Translate description as the name of the new action.

UI Step

Method

Select the POST method.

UI Step

Default connection

Select the connection with DeepL.

UI Step

REST path.

Use the following REST path after replacing nnnnn-nnnnn with the authorization key from your DeepL account.

Code Block
languagebash
linenumberstrue
/translate?auth_key=nnnnn-nnnnn
UI Step

Action body

Enter this action body.

Code Block
languagebash
linenumberstrue
 {
	"text": ["%{issue.description}"],
    "target_lang": "EN"
}
UI Text Box
typeinfo

The target language of the translation can be edited by changing the value of the "target_lang" key according to the DeepL specifications.

UI Step
UI Steps

Update issue fields

UI Step

Update a Text Field (multi-line).

UI Step
 Select the option Set field value manually (parser expression).
UI Step

Enter the following expression with the expression editor in General mode.

Code Block
languagebash
linenumberstrue
%{findReplaceAll(%{action.response.translations[*].text}, "/n", "//")}

Image Modified  Related examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Complexity
sortByTitle
cqllabel = "use-case" and ancestor = "73405887"

Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

Page properties
hiddentrue
JWT feature

Workflow functionExecute remote action
Parser functionsfindReplaceAll()
Label
Use case description
Complexity