Skip to main content

Check JIRA login

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint

/i/crashes-jira?method=check_login

Overview

Verifies stored JIRA OAuth credentials by requesting JIRA server info.

Authentication

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions

  • Requires global admin access.

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be check_login
api_keyStringYes (or auth_token)API key authentication
auth_tokenStringYes (or api_key)Auth token authentication

Examples

Example 1: Validate JIRA login state

/i/crashes-jira?method=check_login&api_key=YOUR_API_KEY

Response

Success Response

{
"result": "Successfully fetched server info"
}

Response Fields

FieldTypeDescription
resultStringLogin validation status

Error Responses

HTTP StatusResponse
500{ "result": "Missing access token, please log in to JIRA" }
500{ "result": "Failed to find JIRA access token" }
500{ "result": "Failed to fetch server info" }

Behavior

  1. Loads JIRA access token from countly.crashes_jira meta document.
  2. Sends authenticated request to /rest/api/3/serverInfo.
  3. Returns success/failure message.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.crashes_jiraEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.