Are you using a plugboard to automate the renaming of the eBooks?
Take a look at
Techniques to use plugboards, custom columns and templates
Or for an example see
https://www.mobileread.com/forums/sho...ex#post1969323
These rely on the Series info being entered in the calibre Metadata; both the Series and Number fields.