Best Practice is for them to match.
Something like this may help you [JDS Config](lhttps://github.com/kitzy/MacDeploymentScripts/tree/master/JDSConfig)
@retroroscoe
While best practice is to have matching versions, in this case, they don't need to match.
Support usually recommends, in the case of the JDS, that if your JDS is working, that you just not touch it and let it continue working; there have been instances when updating the JDS causes a previously working JDS to stop working.
If the JDS is on 9.8x or higher it should be just fine to leave where it is.
There haven't been any major updates to the JDS, aside from the version number, in several versions so there's really not a reason to update the JDS unless you've absolutely got to have matching version numbers for internal compliance.
Amanda Wulff
JAMF Software Support