File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -190,20 +190,17 @@ def move(jra, args):
190
190
print ('No next status step.' )
191
191
return 0
192
192
193
- if len ( available_transitions ) > 1 and transition is None :
193
+ if transition is None :
194
194
print ('Available transitions:' )
195
195
for trans in available_transitions :
196
196
print (' - "{}"' .format (trans ['name' ]))
197
197
return
198
198
199
- if transition is None :
200
- next_transition = available_transitions [0 ]
201
- else :
202
- next_transition = [t for t in available_transitions if t ['name' ].lower () == transition .lower ()]
203
- if len (next_transition ) == 0 :
204
- print ('Status not found for: {}' .format (transition ))
205
- return 1
206
- next_transition = next_transition [0 ]
199
+ next_transition = [t for t in available_transitions if t ['name' ].lower () == transition .lower ()]
200
+ if len (next_transition ) == 0 :
201
+ print ('Status not found for: {}' .format (transition ))
202
+ return 1
203
+ next_transition = next_transition [0 ]
207
204
208
205
jra .transition_issue (args ['<issue>' ], next_transition ['id' ])
209
206
print ('Issue moved to {}' .format (next_transition ['name' ]))
You can’t perform that action at this time.
0 commit comments