src/Jira/Api.php
public function createRemoteLink(
		$issue_key,
		array $object = array(),
		$relationship = null,
		$global_id = null,
		array $application = null
	) {
		$options = array(
						'globalId' => $global_id,
						'relationship' => $relationship,
						'object' => $object,
					);

		if ( !is_null($application) ) {
			$options['application'] = $application;
		}

		return $this->api(self::REQUEST_POST, sprintf('/rest/api/2/issue/%s/remotelink', $issue_key), $options, true);
	}
public function createRemoteLink(
		$issue_key,
		array $object = array(),
		$relationship = null,
		$global_id = null,
		array $application = null
	) {
		$options = array(
						'globalId' => $global_id,
						'relationship' => $relationship,
						'object' => $object,
					);

		if ( !is_null($application) ) {
			$options['application'] = $application;
		}

		return $this->api(self::REQUEST_POST, sprintf('/rest/api/2/issue/%s/remotelink', $issue_key), $options, true);
	}
public function createRemoteLink ( $ issue_key , array $ object = array ( ) , $ relationship = null , $ global_id = null , array $ application = null ) { $ options = array ( 'globalId' => $ global_id , 'relationship' => $ relationship , 'object' => $ object , ) ; if ( ! is_null ( $ application ) ) { $ options [ 'application' ] = $ application ; } return $ this -> api ( self :: REQUEST_POST , sprintf ( '/rest/api/2/issue/%s/remotelink' , $ issue_key ) , $ options , true ) ; }
Creates a remote link.

@param string $issue_key    Issue key.
@param array  $object       Object.
@param string $relationship Relationship.
@param string $global_id    Global ID.
@param array  $application  Application.

@return array|false
@since  2.0.0
Creates a remote link .