get() public méthode

get all project list.
public get ( $issueIdOrKey, array $paramArray = [], Issue $issueObject = null ) : Issue
$issueIdOrKey
$paramArray array Query Parameter key-value Array.
$issueObject Issue
Résultat Issue class
 public function findTicket($ticket)
 {
     try {
         $issue = $this->issueService->get($ticket);
         return $issue;
     } catch (JiraException $e) {
         dd($e->getMessage());
     }
 }
 public function create(\Request $request)
 {
     $data = Request::json()->all();
     $issue_service = new IssueService(app(ConfigurationInterface::class));
     $url_parts = parse_url($data['worklog']['self']);
     $uri = $url_parts['path'];
     $regex = '~^/rest/api/./issue/(?P<issue_id>.*?)/(?P<ignore>.*?)/?$~';
     $matched = preg_match($regex, $uri, $matches);
     if (!$matched) {
         return null;
     }
     $issue = $issue_service->get($matches['issue_id']);
     $project_key = $issue->fields->project->key;
     $project = Project::whereJiraKey($project_key)->first();
     $employee = Staff::whereUserName($data['worklog']['author']['name'])->first();
     //return $project;
     $time_spent = $data['worklog']['timeSpentSeconds'];
     $started = $data['worklog']['started'];
     $timelog_jira_id = $data['worklog']['id'];
     $timelog = Timelog::whereJiraId($timelog_jira_id)->first();
     if ($timelog == null) {
         $timelog = new Timelog();
     }
     $timelog->project_id = $project->id;
     $timelog->staff_id = $employee->id;
     $timelog->started = $started;
     $timelog->time_spent = $time_spent;
     $timelog->jira_id = $timelog_jira_id;
     $timelog->save();
     //debugInfo($timelog);
     return $timelog;
 }
 public function testGetIssue()
 {
     $issueKey = 'TEST-155';
     try {
         $issueService = new IssueService();
         $queryParam = ['fields' => ['summary', 'comment'], 'expand' => ['renderedFields', 'names', 'schema', 'transitions', 'operations', 'editmeta', 'changelog']];
         $issue = $issueService->get($issueKey, $queryParam);
         Dumper::dump($issue);
     } catch (JiraException $e) {
         $this->assertTrue(false, 'testSearch Failed : ' . $e->getMessage());
     }
 }
 public function testIssue()
 {
     $this->markTestIncomplete();
     try {
         $issueService = new IssueService();
         $issue = $issueService->get('TEST-867');
         file_put_contents('jira-issue.json', json_encode($issue, JSON_PRETTY_PRINT));
         print_r($issue->fields->versions[0]);
     } catch (HTTPException $e) {
         $this->assertTrue(false, $e->getMessage());
     }
 }