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 Jul 9, 2021

Java API visibility

Learn how to access visibility settings through Extension’s interface

Extension for Jira Service Management provides its own interface 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, you need to specify the dependency to 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 need to install insight locally into your mvn repository. Read more about how to do that here.

You can download the following archives from here: