src/Jira/Api.php
public function setWatchers($issue_key, array $watchers)
	{
		$result = array();

		foreach ( $watchers as $watcher ) {
			$result[] = $this->api(self::REQUEST_POST, sprintf('/rest/api/2/issue/%s/watchers', $issue_key), $watcher);
		}

		return $result;
	}
public function setWatchers($issue_key, array $watchers)
	{
		$result = array();

		foreach ( $watchers as $watcher ) {
			$result[] = $this->api(self::REQUEST_POST, sprintf('/rest/api/2/issue/%s/watchers', $issue_key), $watcher);
		}

		return $result;
	}
public function setWatchers ( $ issue_key , array $ watchers ) { $ result = array ( ) ; foreach ( $ watchers as $ watcher ) { $ result [ ] = $ this -> api ( self :: REQUEST_POST , sprintf ( '/rest/api/2/issue/%s/watchers' , $ issue_key ) , $ watcher ) ; } return $ result ; }
Set issue watchers.

@param string $issue_key Issue key.
@param array  $watchers  Watchers.

@return Result|false
Set issue watchers .