Head to the settings within Jira. Note that administrator privileges are required to access the settings.

In the menu on the left side, navigate to “Find new apps” under the “apps” category. Search for “Merge”, wait until the entry “Merge Agent for Jira” is shown and proceed to “Install” the app.