The "scan media" action does not seem to work on my "Note 8" with Oreo. I believe this is a bug that needs to be addressed.
Instead, I am using the following shell command with root:
am startservice --es volume "external" com.android.providers.media/.MediaScannerService
There is also an app that works for the "scan media":