Errors in Google Mail Handler After Connection in JSM Cloud

Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.

Summary

Google mail handler connected via OAuth isn't processing incoming messages in Jira Service Management Cloud.

Solution

Error in the connectivity logs

The mail handler connection logs return the following errors:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden GET https://gmail.googleapis.com/gmail/v1/users/xxxxxxxxxx/messages?maxResults=300&q=in:inbox%20label:unread%20after:xxxxxxxxx { "code" : 403, "details" : ...
Retrying in XX minutes - Email pulling has failed X times consecutively (Reason: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden GET https://gmail.googleapis.com/gmail/v1/users/xxxxxxx/messages?maxResults=3...

Give Google the necessary permissions to read the emails

This usually means that Jira wasn't granted access to read the messages in Google Inbox.

Google account permissions for Jira Service Management.  Options include associating with Google profile info, seeing public info, seeing primary email address, and full Gmail access. The first three are checked, Gmail access is not.

To ensure the email is connected and Jira can read the emails, it's advised to reconnect the email account and make sure that the last OAuth permissions scope checkbox is selected.

Updated on May 9, 2025

Still need help?

The Atlassian Community is here for you.