Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

in ScriptRunner for Jira Cloud how to remove or delete a watcher?

Xstpeach Store
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 16, 2023

Edit: I figured it out. This works (with hard coded accountId):

def watcherDel = delete("/rest/api/3/issue/${issueKey}/watchers?accountId=712020:18801fc1-077f-4132-ac7f-928139298d2c")
.header('Content-Type', 'application/json')

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events