If you are upgrading from JIRA 3.x data (or earlier) to JIRA 5.0, you must upgrade to any JIRA 4.x release first, although the latest 4.4.x version is recommended for this process. The following resources in the JIRA 4.4.x documentation are good places to start for upgrading to the latest JIRA 4.4.x release:
You can then follow the JIRA 5.0 Upgrade Notes to upgrade your JIRA 4.x installation to JIRA 5.0.