What is happening
When doing a bulk change of issues (in the UI or with WS) containing external issues, a useless error log is generated, even if everything is correctly working.
Here's the error log :
An error occur when trying to apply the action : do_transition on issue : AWYgxeN-vOWp7Yd6FsYb. This issue has been ignored. Error is 'No transition allowed on issue from externally define rule'
java.lang.IllegalArgumentException: No transition allowed on issue from externally define rule
How to reproduce
- Go to the Issues page
- Find some external issues
- Select some none-external and some external issues
- Choose any transition
- Click on Apply button
-> None-external issues will be updated, external issues will be ignored (as expected)
-> A error log will be generated (not expected)
How to fix
in api/issues/bulk_change, no check should be done on external issues, but org.sonar.server.issue.TransitionService#doTransition() should do nothing on external issue.