We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e305b96 commit fc2e8a3Copy full SHA for fc2e8a3
lib/jira/resource/watcher.rb
@@ -19,9 +19,13 @@ def self.all(client, options = {})
19
raise ArgumentError.new("parent issue is required")
20
end
21
22
- path = client.options[:rest_base_path] + "/issue/#{issue.key}/#{endpoint_name}"
+ path = client.options[:rest_base_path] + "/issue/#{issue.id}/#{endpoint_name}"
23
+ puts "mi path #{path}"
24
+ # path = "#{issue.self}/#{endpoint_name}"
25
+ # puts "su path #{path}"
26
response = client.get(path)
27
json = parse_json(response.body)
28
+ puts json
29
json['watchers'].map do |watcher|
30
issue.watchers.build(watcher)
31
0 commit comments