Skip to content

Commit 7e4ef63

Browse files
committed
fix trans
1 parent 31d3882 commit 7e4ef63

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/terjira/client/issue.rb

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ def find(issue, options = {})
2323
build(resp)
2424
end
2525

26+
def find_default(issue, options = {})
27+
resp = api_get("issue/#{issue.key_value}", options)
28+
build(resp)
29+
end
30+
2631
def search(options = {})
2732
resource.jql(build_jql(options))
2833
end

lib/terjira/issue_cli.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def trans(*args)
157157
issue = args.shift
158158
raise 'must pass issue key or id' unless issue
159159
status = args.join(' ') if args.present?
160-
issue = client_class.find(issue, expand: 'transitions.fields')
160+
issue = client_class.find_default(issue, expand: 'transitions.fields')
161161

162162
transitions = issue.transitions
163163
transition = transitions.find { |t| t.name.casecmp(status.to_s).zero? }

0 commit comments

Comments
 (0)