Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/jira/resource/remotelink.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.all(client, options = {})
issue = options[:issue]
raise ArgumentError, 'parent issue is required' unless issue

path = "#{issue.self}/#{endpoint_name}"
path = client.options[:rest_base_path] + "/issue/#{issue.key}/#{endpoint_name}"
response = client.get(path)
json = parse_json(response.body)
json.map do |link|
Expand Down
2 changes: 1 addition & 1 deletion lib/jira/resource/transition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.all(client, options = {})
issue = options[:issue]
raise ArgumentError, 'parent issue is required' unless issue

path = "#{issue.self}/#{endpoint_name}?expand=transitions.fields"
path = client.options[:rest_base_path] + "/issue/#{issue.key}/#{endpoint_name}?expand=transitions.fields"
response = client.get(path)
json = parse_json(response.body)
json['transitions'].map do |transition|
Expand Down
2 changes: 1 addition & 1 deletion lib/jira/resource/watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.all(client, options = {})
issue = options[:issue]
raise ArgumentError, 'parent issue is required' unless issue

path = "#{issue.self}/#{endpoint_name}"
path = client.options[:rest_base_path] + "/issue/#{issue.id}/#{endpoint_name}"
response = client.get(path)
json = parse_json(response.body)
json['watchers'].map do |watcher|
Expand Down