src/Jira/Api.php
public function createVersion($project_key, $version, array $options = array())
	{
		$options = array_merge(
			array(
				'name' => $version,
				'description' => '',
				'project' => $project_key,
				// 'userReleaseDate' => '',
				// 'releaseDate' => '',
				'released' => false,
				'archived' => false,
			),
			$options
		);

		return $this->api(self::REQUEST_POST, '/rest/api/2/version', $options);
	}
public function createVersion($project_key, $version, array $options = array())
	{
		$options = array_merge(
			array(
				'name' => $version,
				'description' => '',
				'project' => $project_key,
				// 'userReleaseDate' => '',
				// 'releaseDate' => '',
				'released' => false,
				'archived' => false,
			),
			$options
		);

		return $this->api(self::REQUEST_POST, '/rest/api/2/version', $options);
	}
public function createVersion ( $ project_key , $ version , array $ options = array ( ) ) { $ options = array_merge ( array ( 'name' => $ version , 'description' => '' , 'project' => $ project_key , // 'userReleaseDate' => '', // 'releaseDate' => '', 'released' => false , 'archived' => false , ) , $ options ) ; return $ this -> api ( self :: REQUEST_POST , '/rest/api/2/version' , $ options ) ; }
Creates new version.

@param string $project_key Project key.
@param string $version     Version.
@param array  $options     Options.

@return Result|false
Creates new version .