File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ def find(issue, options = {})
23
23
build ( resp )
24
24
end
25
25
26
+ def find_default ( issue , options = { } )
27
+ resp = api_get ( "issue/#{ issue . key_value } " , options )
28
+ build ( resp )
29
+ end
30
+
26
31
def search ( options = { } )
27
32
resource . jql ( build_jql ( options ) )
28
33
end
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ def trans(*args)
157
157
issue = args . shift
158
158
raise 'must pass issue key or id' unless issue
159
159
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' )
161
161
162
162
transitions = issue . transitions
163
163
transition = transitions . find { |t | t . name . casecmp ( status . to_s ) . zero? }
You can’t perform that action at this time.
0 commit comments