Skip to content

Commit fc2e8a3

Browse files
Try to find out what's wrong with watchers
1 parent e305b96 commit fc2e8a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/jira/resource/watcher.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ def self.all(client, options = {})
1919
raise ArgumentError.new("parent issue is required")
2020
end
2121

22-
path = client.options[:rest_base_path] + "/issue/#{issue.key}/#{endpoint_name}"
22+
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}"
2326
response = client.get(path)
2427
json = parse_json(response.body)
28+
puts json
2529
json['watchers'].map do |watcher|
2630
issue.watchers.build(watcher)
2731
end

0 commit comments

Comments
 (0)