Is 'Jaws' based on a true story?

No, it is based on the novel of the same name by Peter Benchley. The novel included many aspects of actual attacks by sharks, none as large as the fictional one.