First you need to create the Epic in your Jira project:
Then go to the Issue Tracker settings for a specific project:
Go to the Issue Tracker tab, and click Jira --> Configure Issues...
Add a Parent field:
Then enter the key value for the Epic:
Now all new created issues inside of the project should automatically link the new issues to the epic:
And it should look like this in Jira: