From e3c08f58831b7392569e11f3337258a2f7d0fb7c Mon Sep 17 00:00:00 2001 From: kemjones Date: Wed, 7 Sep 2016 14:59:09 -0400 Subject: [PATCH] Fix typo in "Get Issue Watchers" API request According to the doc, "https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getIssueWatchers", the correct v2 API request is "/watchers" not "/watches" --- src/main/java/net/rcarz/jiraclient/Watches.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/rcarz/jiraclient/Watches.java b/src/main/java/net/rcarz/jiraclient/Watches.java index a12c8f9..28ec8d0 100644 --- a/src/main/java/net/rcarz/jiraclient/Watches.java +++ b/src/main/java/net/rcarz/jiraclient/Watches.java @@ -71,7 +71,7 @@ public class Watches extends Resource { JSON result = null; try { - result = restclient.get(getBaseUri() + "issue/" + issue + "/watches"); + result = restclient.get(getBaseUri() + "issue/" + issue + "/watchers"); } catch (Exception ex) { throw new JiraException("Failed to retrieve watches for issue " + issue, ex); }