...
Go to your Gmail Settings by clicking on the “Manage your Google Account“ option.
Search for App Password in the search bar and click on it. The app Password page will get open.
Click on the Select App option and select Other(Custom Name) in the dropdown.
Give any Custom Name and then click on the Generate button to generate the password. Copy this password as it used in configuring the SMTP profile.
Log in to your Jira/Confluence instance and go to the system settings.
Click on the Outgoing Mail in the left menu bar and click on Configure new SMTP mail server button to configure the SMTP profile.
asas
...
Provide the necessary details as shown in the below screen shot and paste the password you have generated in the password section of the page.
Once the connection is successful, then click on the Save and authorize button to save the connection.
Your profile has been created and you can test by sending the test mail.
Check your inbox for the confirmation