Apps documentation
Translation for Jira Service Management
Translation for Jira Service Management
Documentation
FAQ
Release notes
Articles & Videos
Last updated Jun 16, 2020

Translation for Jira Service Management Java API

Translations for Jira Service Management provides its own Service interface to access translations configured within the application.

com.intenso.jira.plugins.translation.api.TranslationService

Method Description
String getGlobalTranslation(String text) Gets translation for text using shared configuration.
Params:
- texts - List of texts to translate
Return:
Translated values for the provided texts. If a translation does not exist for a text, then the text itself is returned.
List<String> getProjectTranslations(String projectId, List<String> texts) Gets translation for text using shared configuration.
Params:
- text - Text to translate.
Return:
Translated value for the provided text. If a translation does not exist for a text, then the text itself is returned.
String getProjectTranslation(String projectId, String text) Gets translation for text using shared configuration.
Params:
- text - Text to translate.
Return:
Translated value for the provided text. If a translation does not exist for a text, then the text itself is returned.
String getProjectTranslation(String projectId, String text) Gets translation for text using project and shared configuration.
Params:
- projectId - ID of a project of which configuration will be considered.
- text - Text to translate. Project configuration is considered first, then the shared configuration is taken under consideration.
Return:
Translated value for the provided text. If a translation does not exist for a text, then the text itself is returned.
boolean isLicenseValid() Checks if the license for Translation for Jira Service Management is valid.
Return:
True if the license is valid.

How to set up your own plugin

When using the Translation for Jira Service Management Java API from your own plugin, you need to specify the dependency to the Translation for Jira Service Management Java API.

Maven

pom.xml

<dependency>
  <groupId>com.intenso.jira.plugins.translation</groupId>
  <artifactId>jsd-translation-api</artifactId>
  <version>2.3.5</version>
  <scope>provided</scope>
</dependency>

You need to install Translation for Jira Service Management locally into your mvn repository. For more information on how to do that, see Maven documentation.

You can find the archive here.

Need help?

If you can’t find the answer you need in our documentation, raise a support request*.
*Include as much information as possible to help our support team resolve your issue faster.