JIRA SERVER

An issue security scheme is associated with a project, its security levels can be applied to issues in that project.

You can synchronize the issue security level as any other issue field.

This article provides description and scripts that help to synchronize issue security level. 

SecurityLevel issue field reference.

Source instance

Add the issue security level to your Data Filter to send it to the Destination Instance:

replica.securityLevel = issue.securityLevel


Destination instance 

There are two methods to get securityLevel from the source side. The method depends if the securityLevel names are identicals on both sides.

  • SecurityLevel names are identical on both sides

     Add the code below into the Create/Change Processor to add received security level field on the Destination side. 

issue.securityLevel = replica.securityLevel
 

  • SecurityLevel names don't match

Add the code below into the Create/Change Processor to map different security levels between Instances.

import com.exalate.basic.domain.hubobject.v1. BasicHubIssueSecurityLevel
issue.securityLevel = new BasicHubIssueSecurityLevel(null, "name", "description")



Note!

The proxy user needs to have permissions to access the security levels you are trying to set.