'Get a dict of all available permissions on the server.
:param projectKey: limit returned permissions to the specified project
:param projectId: limit returned permissions to the specified project
:param issueKey: limit returned permissions to the specified issue
:param issueId: limit returned permissions to the specified issue'

def my_permissions(self, projectKey=None, projectId=None, issueKey=None, issueId=None):

    params = {}
    if (projectKey is not None):
        params[u'projectKey'] = projectKey
    if (projectId is not None):
        params[u'projectId'] = projectId
    if (issueKey is not None):
        params[u'issueKey'] = issueKey
    if (issueId is not None):
        params[u'issueId'] = issueId
    return self._get_json(u'mypermissions', params=params)
