Just follow the guide here: Connecting Confluence to Jira.