Judgments are public records. If you had a money judgment against you, odds are the credit reporting agency obtained the information as a matter of public record, not as a matter of its having been reported by the creditor.

I cannot see your credit report from where I'm sitting, nor do I have any access to your court records. Are you suggesting that your credit report lists the judgment as having been issued, but discharged? If so, that's accurate information. If the judgment is shown as not having been discharged, was the discharge properly reported to the court that issued the judgment? If so, you can dispute the inaccurate information with the CRA who should then confirm the discharge with the court. If not, you need to properly report the discharge to the court that issued the judgment so that they update their records accordingly, and then ask the CRA to correct its records.