Apps documentation
Extension for Jira Service Management
Cloud Server/Data Center
Extension for Jira Service Management

Cloud

Server/Data Center

Documentation
FAQ
Release notes
Articles & Videos
Last updated Feb 12, 2024

Java API

Learn how to access visibility settings through Extension’s interface.

Extension for Jira Service Management provides its own interface that allows you to access visibility settings configured within the application.

com.deviniti.atlassian.apps.extension.api.visibility.VisibilityFacade
Method Description
List<ServiceDeskVisibility> getSettings(); Gets settings for Customer Portal visibilities.
Returns List of visibility settings configured for Customer Portals and Request Types.
boolean isServiceDeskHiddenToCurrentUser(Integer serviceDeskId); Checks if the Customer Portal is hidden for currently logged in user.
Returns true if Service Desk is hidden for currently logged in user.
boolean isRequestTypeHiddenToCurrentUser(Integer serviceDeskId, Integer requestTypeId); Checks if Request Type is hidden for currently logged in user.
Returns true if Request Type is hidden for currently logged in user.
Example
...
 
import com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport;
import com.deviniti.atlassian.apps.extension.api.visibility.VisibilityFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component 
public class MyPluginResource {

  ...
  @ComponentImport
  private final VisibilityFacade visibilityFacade;
  ...

  @Autowired
  public MyPluginResource(final VisibilityFacade visibilityFacade) {
      this.visibilityFacade = visibilityFacade;
  }
 
 ...
 
  private String getVisibilitySettings() {
      return visibilityFacade.getSettings();
  }
     
}

How to set up your own plugin

When using the Extension for Jira Service Management Java API from your own plugin, it’s necessary to specify the dependency to the Extension for Jira Service Management API.

Maven

pom.xml

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

You should install insight locally into your mvn repository.

Note

To read more about installing a JAR in the local repository, check Maven documentation.

Tip

You can download the following archives: