src/Jira/Api.php
public function releaseVersion($version_id, $release_date = null, array $params = array())
	{
		if ( !$release_date ) {
			$release_date = date('Y-m-d');
		}

		$params = array_merge(
			array(
				'releaseDate' => $release_date,
				'released' => true,
			),
			$params
		);

		return $this->updateVersion($version_id, $params);
	}
public function releaseVersion($version_id, $release_date = null, array $params = array())
	{
		if ( !$release_date ) {
			$release_date = date('Y-m-d');
		}

		$params = array_merge(
			array(
				'releaseDate' => $release_date,
				'released' => true,
			),
			$params
		);

		return $this->updateVersion($version_id, $params);
	}
public function releaseVersion ( $ version_id , $ release_date = null , array $ params = array ( ) ) { if ( ! $ release_date ) { $ release_date = date ( 'Y-m-d' ) ; } $ params = array_merge ( array ( 'releaseDate' => $ release_date , 'released' => true , ) , $ params ) ; return $ this -> updateVersion ( $ version_id , $ params ) ; }
Shorthand to mark a version as Released.

@param integer     $version_id   Version ID.
@param string|null $release_date Date in Y-m-d format (defaults to today).
@param array       $params       Optionally extra parameters.

@return false
@since  2.0.0
Shorthand to mark a version as Released .