private function cleanParams(array $params = [])
    {
        if (isset($params['project'])) {
            $apiProject = $this->client->project;
            $params['project_id'] = $apiProject->getIdByName($params['project']);
            unset($params['project']);
            if (isset($params['category'])) {
                $apiIssueCategory = $this->client->issue_category;
                $params['category_id'] = $apiIssueCategory->getIdByName($params['project_id'], $params['category']);
                unset($params['category']);
            }
        }
        if (isset($params['status'])) {
            $apiIssueStatus = $this->client->issue_status;
            $params['status_id'] = $apiIssueStatus->getIdByName($params['status']);
            unset($params['status']);
        }
        if (isset($params['tracker'])) {
            $apiTracker = $this->client->tracker;
            $params['tracker_id'] = $apiTracker->getIdByName($params['tracker']);
            unset($params['tracker']);
        }
        if (isset($params['assigned_to'])) {
            $apiUser = $this->client->user;
            $params['assigned_to_id'] = $apiUser->getIdByUsername($params['assigned_to']);
            unset($params['assigned_to']);
        }
        if (isset($params['author'])) {
            $apiUser = $this->client->user;
            $params['author_id'] = $apiUser->getIdByUsername($params['author']);
            unset($params['author']);
        }

        return $params;
    }
private function cleanParams(array $params = [])
    {
        if (isset($params['project'])) {
            $apiProject = $this->client->project;
            $params['project_id'] = $apiProject->getIdByName($params['project']);
            unset($params['project']);
            if (isset($params['category'])) {
                $apiIssueCategory = $this->client->issue_category;
                $params['category_id'] = $apiIssueCategory->getIdByName($params['project_id'], $params['category']);
                unset($params['category']);
            }
        }
        if (isset($params['status'])) {
            $apiIssueStatus = $this->client->issue_status;
            $params['status_id'] = $apiIssueStatus->getIdByName($params['status']);
            unset($params['status']);
        }
        if (isset($params['tracker'])) {
            $apiTracker = $this->client->tracker;
            $params['tracker_id'] = $apiTracker->getIdByName($params['tracker']);
            unset($params['tracker']);
        }
        if (isset($params['assigned_to'])) {
            $apiUser = $this->client->user;
            $params['assigned_to_id'] = $apiUser->getIdByUsername($params['assigned_to']);
            unset($params['assigned_to']);
        }
        if (isset($params['author'])) {
            $apiUser = $this->client->user;
            $params['author_id'] = $apiUser->getIdByUsername($params['author']);
            unset($params['author']);
        }

        return $params;
    }
private function cleanParams ( array $ params = [ ] ) { if ( isset ( $ params [ 'project' ] ) ) { $ apiProject = $ this -> client -> project ; $ params [ 'project_id' ] = $ apiProject -> getIdByName ( $ params [ 'project' ] ) ; unset ( $ params [ 'project' ] ) ; if ( isset ( $ params [ 'category' ] ) ) { $ apiIssueCategory = $ this -> client -> issue_category ; $ params [ 'category_id' ] = $ apiIssueCategory -> getIdByName ( $ params [ 'project_id' ] , $ params [ 'category' ] ) ; unset ( $ params [ 'category' ] ) ; } } if ( isset ( $ params [ 'status' ] ) ) { $ apiIssueStatus = $ this -> client -> issue_status ; $ params [ 'status_id' ] = $ apiIssueStatus -> getIdByName ( $ params [ 'status' ] ) ; unset ( $ params [ 'status' ] ) ; } if ( isset ( $ params [ 'tracker' ] ) ) { $ apiTracker = $ this -> client -> tracker ; $ params [ 'tracker_id' ] = $ apiTracker -> getIdByName ( $ params [ 'tracker' ] ) ; unset ( $ params [ 'tracker' ] ) ; } if ( isset ( $ params [ 'assigned_to' ] ) ) { $ apiUser = $ this -> client -> user ; $ params [ 'assigned_to_id' ] = $ apiUser -> getIdByUsername ( $ params [ 'assigned_to' ] ) ; unset ( $ params [ 'assigned_to' ] ) ; } if ( isset ( $ params [ 'author' ] ) ) { $ apiUser = $ this -> client -> user ; $ params [ 'author_id' ] = $ apiUser -> getIdByUsername ( $ params [ 'author' ] ) ; unset ( $ params [ 'author' ] ) ; } return $ params ; }
Transforms literal identifiers to integer ids.

@param array $params

@return array
Transforms literal identifiers to integer ids .