Login to JIRA
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=login
Overview
Starts OAuth 1.0a authorization with JIRA and redirects to JIRA authorization page.
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
| Parameter | Type | Required | Description |
|---|---|---|---|
method | String | Yes | Must be login |
pretty_callback | String | No | Use yes to make callback redirect to /crashes-jira/login_callback UI page |
api_key | String | Yes (or auth_token) | API key authentication |
auth_token | String | Yes (or api_key) | Auth token authentication |
Examples
Example 1: Start OAuth login flow
/i/crashes-jira?method=login&pretty_callback=yes&api_key=YOUR_API_KEY
Response
Success Response
On success, endpoint responds with redirect (302) to JIRA authorize URL:
{
"result": "Redirect to JIRA authorization"
}
Response Fields
| Field | Type | Description |
|---|---|---|
result | String | Conceptual success message for docs; actual response is HTTP redirect |
Error Responses
| HTTP Status | Response |
|---|---|
| 500 | { "result": "Failed to generate oauth object: ..." } |
| 500 | { "result": "Failed to retrieve oauth token: ..." } |
| 500 | { "result": "Failed to store oauth token: ..." } |
Behavior
- Reads global
crashes-jiraconfig (api_url,api_consumer_key,client_private_key,callback_url). - Creates temporary OAuth request token and stores it in
countly.crashes_jira(_id: "meta"). - Redirects to JIRA OAuth authorization endpoint.
Related Endpoints
Implementation details
Configuration Impact
| Setting | Default | Affects | User-visible impact |
|---|---|---|---|
crashes-jira.* | Crashes Jira integration defaults | Jira integration logic and synchronization behavior. | Changes to Jira integration settings can alter authentication, sync behavior, and returned integration state. |
Database Collections
| Collection | Used for | Data touched by this endpoint |
|---|---|---|
countly.crashes_jira | Endpoint data source | Stores endpoint-related records this endpoint reads or modifies. |