JiraRestApi\Project\ProjectService::get PHP Method

get() public method

get Project id By Project Key.
public get ( $projectIdOrKey ) : string
return string project id
    public function get($projectIdOrKey)
    {
        $ret = $this->exec($this->uri . "/{$projectIdOrKey}", null);
        $this->log->addInfo('Result=' . $ret);
        $prj = $this->json_mapper->map(json_decode($ret), new Project());
        return $prj;
    }

Usage Example

コード例 #1
0
 public function testGetProject()
 {
     //$this->markTestIncomplete();
     try {
         $proj = new ProjectService();
         $p = $proj->get('TEST');
         Dumper::dump($p);
         foreach ($p->components as $c) {
             echo 'COM : ' . $c->name . "\n";
         }
     } catch (HTTPException $e) {
         $this->assertTrue(false, $e->getMessage());
     }
 }
All Usage Examples Of JiraRestApi\Project\ProjectService::get