3 months by default. A Jira administrator can change it to 1 month, 6 months or 1 year under Sync history > Settings. 1 year needs an Advanced license or a trial; Standard keeps at most 6 months. A daily cleanup removes older entries, and they can't be recovered.
See also: Sync History, License Editions