lesstif / php-jira-rest-client

PHP classes interact Jira with the REST API.
Other
510 stars 263 forks source link

Trait "JiraRestApi\AgileApiTrait" not found #442

Closed wsslfnstr closed 2 years ago

wsslfnstr commented 2 years ago

When i try to use the example to get all my boards it throws an error.

 try {
        $board_service = new BoardService();
        $board = $board_service->getBoardList();

        var_dump($board);
    } catch (JiraRestApi\JiraException $e) {
        print('Error Occured! ' . $e->getMessage());
    }
    Trait "JiraRestApi\AgileApiTrait" not found

Did i miss something?

davidmonnom commented 2 years ago

Hi you can add a file in src at root with

namespace JiraRestApi;

trait AgileApiTrait
{
    private function setupAPIUri($version = '1.0')
    {
        $this->setAPIUri('/rest/agile/'.$version);
    }
}
lesstif commented 2 years ago

Hi @wsslfnstr, I'm sorry, It's my mistake. I pushed commit, Could you check out, please.