Interface MyPermissionsRestClient


public interface MyPermissionsRestClient
  • Method Summary

    Modifier and Type
    Method
    Description
    io.atlassian.util.concurrent.Promise<Permissions>
    Returns permissions for current user and context defined by permissionInput
  • Method Details

    • getMyPermissions

      io.atlassian.util.concurrent.Promise<Permissions> getMyPermissions(@Nullable MyPermissionsInput permissionInput)
      Returns permissions for current user and context defined by permissionInput
      Parameters:
      permissionInput - Permissions context ie. projectKey OR projectId OR issueKey OR issueId.
      • When no context supplied (null) the project related permissions will return true if the user has that permission in ANY project
      • If a project context is provided, project related permissions will return true if the user has the permissions in the specified project. For permissions that are determined using issue data (e.g Current Assignee), true will be returned if the user meets the permission criteria in ANY issue in that project
      • If an issue context is provided, it will return whether or not the user has each permission in that specific issue
      Returns:
      Permissions for user in the context