public function createAttachment($issue_key, $filename, $name = null)
	{
		$options = array(
			'file' => '@' . $filename,
			'name' => $name,
		);

		return $this->api(
			self::REQUEST_POST,
			sprintf('/rest/api/2/issue/%s/attachments', $issue_key),
			$options,
			false,
			true
		);
	}