src/Jira/Api.php
public function createIssue($project_key, $summary, $issue_type, array $options = array())
	{
		$default = array(
			'project' => array(
				'key' => $project_key,
			),
			'summary' => $summary,
			'issuetype' => array(
				'id' => $issue_type,
			),
		);

		$default = array_merge($default, $options);

		return $this->api(self::REQUEST_POST, '/rest/api/2/issue/', array('fields' => $default));
	}
public function createIssue($project_key, $summary, $issue_type, array $options = array())
	{
		$default = array(
			'project' => array(
				'key' => $project_key,
			),
			'summary' => $summary,
			'issuetype' => array(
				'id' => $issue_type,
			),
		);

		$default = array_merge($default, $options);

		return $this->api(self::REQUEST_POST, '/rest/api/2/issue/', array('fields' => $default));
	}
public function createIssue ( $ project_key , $ summary , $ issue_type , array $ options = array ( ) ) { $ default = array ( 'project' => array ( 'key' => $ project_key , ) , 'summary' => $ summary , 'issuetype' => array ( 'id' => $ issue_type , ) , ) ; $ default = array_merge ( $ default , $ options ) ; return $ this -> api ( self :: REQUEST_POST , '/rest/api/2/issue/' , array ( 'fields' => $ default ) ) ; }
Creates an issue.

@param string $project_key Project key.
@param string $summary     Summary.
@param string $issue_type  Issue type.
@param array  $options     Options.

@return Result|false
Creates an issue .