- Introduction
- About
- Get started
- Migration to Cloud
- Bundled Fields
- Bundled Fields Overview
- Adding Bundled Fields
- Bundled Fields Configuration
- Format and validation
- Using Bundled Fields
- Advanced settings
- Bundled Fields Searcher
- Java API (ScriptRunner)
- Data Sources
- Email notifications
- Bundled Fields v.6.8.x - 6.9.x
- Bundled Fields v.6.7.x
- Dynamic Forms
- Dynamic Forms
- Supported fields
- Visibility
- Request Types visibility
- Fields visibility
- Customer Portal visibility
- Options visibility
- Requirements visibility
- SLAs visibility
- Java API
- Multilevel Structure
- Configuration
- Using a multilevel structure on the Customer Portal
- User Synchronization
- Organizations and Groups Synchronization
- Issue View
- Issue View
- Add user's IP address post function
- Restart SLA post function
- Update SLA to date post function
- Customer Portal
- Links
- Export list
- Split column
- Request details view
- Additional fields
- Additional options
- Compatibility
- Configuration Manager
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: