File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -832,6 +832,27 @@ public function removeWatcher($issueIdOrKey, $watcher)
832
832
833
833
return $ this ->http_response == 204 ? true : false ;
834
834
}
835
+
836
+ /**
837
+ * remove watcher from issue by watcher account id.
838
+ *
839
+ * @param string|int $issueIdOrKey
840
+ * @param string $accountId Watcher account id.
841
+ *
842
+ * @throws JiraException
843
+ *
844
+ * @return bool
845
+ */
846
+ public function removeWatcherByAccountId ($ issueIdOrKey , $ accountId )
847
+ {
848
+ $ this ->log ->info ("removeWatcher= \n" );
849
+
850
+ $ ret = $ this ->exec ($ this ->uri ."/ $ issueIdOrKey/watchers/?accountId= $ accountId " , '' , 'DELETE ' );
851
+
852
+ $ this ->log ->info ('remove watcher ' .$ issueIdOrKey .' result= ' .var_export ($ ret , true ));
853
+
854
+ return $ this ->http_response == 204 ? true : false ;
855
+ }
835
856
836
857
/**
837
858
* Get the meta data for creating issues.
You can’t perform that action at this time.
0 commit comments