This resource represents issue security schemes. Use it to get an issue security scheme or a list of issue security schemes.

Issue security schemes control which users or groups of users can view an issue. When an issue security scheme is associated with a project, its security levels can be applied to issues in that project. Sub-tasks also inherit the security level of their parent issue.

Hierarchy

  • CommonHttpService
    • IssueSecuritySchemesService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns IssueSecuritySchemesService

Methods

  • Returns an issue security scheme along with its security levels.

    Permissions required:

    Parameters

    • params: {
          id: number;
      }
      • id: number

        The ID of the issue security scheme. Use the Get issue security schemes operation to get a list of issue security scheme IDs.

    Returns Promise<SecurityScheme>

    Returned if the request is successful.

    example:

    {
    "defaultSecurityLevelId": 10021,
    "description": "Description for the default issue security scheme",
    "id": 10000,
    "levels": [
    {
    "description": "Only the reporter and internal staff can see this issue.",
    "id": "10021",
    "name": "Reporter Only",
    "self": "https://your-domain.atlassian.net/rest/api/3/securitylevel/10021"
    }
    ],
    "name": "Default Issue Security Scheme",
    "self": "https://your-domain.atlassian.net/rest/api/3/issuesecurityschemes/10000"
    }

    GET /rest/api/3/issuesecurityschemes/{id} @scopes-current manage:jira-project @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira

  • Returns a paginated list of issue security level members.

    Only issue security level members in the context of classic projects are returned.

    Filtering using parameters is inclusive: if you specify both security scheme IDs and level IDs, the result will include all issue security level members from the specified schemes and levels.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          expand?: string;
          id?: string[];
          levelId?: string[];
          maxResults?: string;
          schemeId?: string[];
          startAt?: string;
      } = {}
      • Optionalexpand?: string

        Use expand to include additional information in the response. This parameter accepts a comma-separated list. Expand options include:

        • all Returns all expandable information
        • field Returns information about the custom field granted the permission
        • group Returns information about the group that is granted the permission
        • projectRole Returns information about the project role granted the permission
        • user Returns information about the user who is granted the permission
      • Optionalid?: string[]

        The list of issue security level member IDs. To include multiple issue security level members separate IDs with an ampersand: id=10000&id=10001.

      • OptionallevelId?: string[]

        The list of issue security level IDs. To include multiple issue security levels separate IDs with an ampersand: levelId=10000&levelId=10001.

      • OptionalmaxResults?: string

        The maximum number of items to return per page.

      • OptionalschemeId?: string[]

        The list of issue security scheme IDs. To include multiple issue security schemes separate IDs with an ampersand: schemeId=10000&schemeId=10001.

      • OptionalstartAt?: string

        The index of the first item to return in a page of results (page offset).

    Returns Promise<PageBeanSecurityLevelMember>

    Returned if the request is successful.

    example:

    {
    "isLast": true,
    "maxResults": 100,
    "startAt": 0,
    "total": 3,
    "values": [
    {
    "id": "10000",
    "issueSecurityLevelId": "20010",
    "issueSecuritySchemeId": "10010",
    "holder": {
    "expand": "group",
    "type": "group"
    }
    }
    ]
    }

    GET /rest/api/3/issuesecurityschemes/level/member @scopes-current manage:jira-configuration @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira

  • Returns a paginated list of issue security levels.

    Only issue security levels in the context of classic projects are returned.

    Filtering using IDs is inclusive: if you specify both security scheme IDs and level IDs, the result will include both specified issue security levels and all issue security levels from the specified schemes.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          id?: string[];
          maxResults?: string;
          onlyDefault?: boolean;
          schemeId?: string[];
          startAt?: string;
      } = {}
      • Optionalid?: string[]

        The list of issue security scheme level IDs. To include multiple issue security levels, separate IDs with an ampersand: id=10000&id=10001.

      • OptionalmaxResults?: string

        The maximum number of items to return per page.

      • OptionalonlyDefault?: boolean

        When set to true, returns multiple default levels for each security scheme containing a default. If you provide scheme and level IDs not associated with the default, returns an empty page. The default value is false.

      • OptionalschemeId?: string[]

        The list of issue security scheme IDs. To include multiple issue security schemes, separate IDs with an ampersand: schemeId=10000&schemeId=10001.

      • OptionalstartAt?: string

        The index of the first item to return in a page of results (page offset).

    Returns Promise<PageBeanSecurityLevel>

    Returned if the request is successful.

    example:

    {
    "isLast": true,
    "maxResults": 50,
    "startAt": 0,
    "total": 1,
    "values": [
    {
    "description": "Only the reporter and internal staff can see this issue.",
    "id": "10021",
    "isDefault": true,
    "issueSecuritySchemeId": "10001",
    "name": "Reporter Only",
    "self": "https://your-domain.atlassian.net/rest/api/3/issuesecurityscheme/level?id=10021"
    }
    ]
    }

    GET /rest/api/3/issuesecurityschemes/level @scopes-current manage:jira-configuration @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira

  • Returns a paginated list of issue security schemes. If you specify the project ID parameter, the result will contain issue security schemes and related project IDs you filter by. Use {@link IssueSecuritySchemeResource#searchProjectsUsingSecuritySchemes(String, String, Set, Set)} to obtain all projects related to scheme.

    Only issue security schemes in the context of classic projects are returned.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          id?: string[];
          maxResults?: string;
          projectId?: string[];
          startAt?: string;
      } = {}
      • Optionalid?: string[]

        The list of issue security scheme IDs. To include multiple issue security scheme IDs, separate IDs with an ampersand: id=10000&id=10001.

      • OptionalmaxResults?: string

        The maximum number of items to return per page.

      • OptionalprojectId?: string[]

        The list of project IDs. To include multiple project IDs, separate IDs with an ampersand: projectId=10000&projectId=10001.

      • OptionalstartAt?: string

        The index of the first item to return in a page of results (page offset).

    Returns Promise<PageBeanSecuritySchemeWithProjects>

    Returned if the request is successful.

    example:

    {
    "id": 10000,
    "self": "https://your-domain.atlassian.net/rest/api/3/issuesecurityscheme/10000",
    "name": "Default scheme",
    "description": "Default scheme description",
    "defaultLevel": 10001,
    "projectIds": [
    10002
    ]
    }

    GET /rest/api/3/issuesecurityschemes/search @scopes-current manage:jira-configuration @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void