public function addWatcher($issue, $login)
    {
        $path = "/issue/{$issue}/watchers";

        try {
            $this->client->callPost($path, $login);
        } catch (Exception $e) {
            throw new JiraException("Failed to add watcher '{$login}' to issue '{$issue}'", $e);
        }

        return $this;
    }
public function addWatcher($issue, $login)
    {
        $path = "/issue/{$issue}/watchers";

        try {
            $this->client->callPost($path, $login);
        } catch (Exception $e) {
            throw new JiraException("Failed to add watcher '{$login}' to issue '{$issue}'", $e);
        }

        return $this;
    }
public function addWatcher ( $ issue , $ login ) { $ path = "/issue/{$issue}/watchers" ; try { $ this -> client -> callPost ( $ path , $ login ) ; } catch ( Exception $ e ) { throw new JiraException ( "Failed to add watcher '{$login}' to issue '{$issue}'" , $ e ) ; } return $ this ; }
Adds a user to an issue's watcher list.

@param string $issue
@param string $login
@return \JiraClient\Request\Issue
@throws JiraException
Adds a user to an issue s watcher list .