Skip to main content

Create JIRA issue

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=create

Overview

Creates a JIRA issue for a crash group and stores the issue key mapping in Countly.

Authentication

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

Permissions

  • Required permission: Create on the crashes feature

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be create
app_idStringYesApplication identifier
crashgroup_idStringYesCrash group identifier
summaryStringNoOverride default issue summary (defaults to crash group name)
descriptionStringNoOverride default issue description (defaults to crash error body)
api_keyStringYes (or auth_token)API key authentication
auth_tokenStringYes (or api_key)Auth token authentication

Examples

Example 1: Create issue with default summary/description

/i/crashes-jira?method=create&app_id=5f9c8a3b4d1e2a001f3b4567&crashgroup_id=65c5f2782c5f5300121a00c1&api_key=YOUR_API_KEY

Example 2: Create issue with custom summary and description

/i/crashes-jira?
method=create&
app_id=5f9c8a3b4d1e2a001f3b4567&
crashgroup_id=65c5f2782c5f5300121a00c1&
summary=Android crash on checkout&
description=Crash reported in v2.3.1; Repro steps included&
api_key=YOUR_API_KEY

Response

Success Response

New issue created:

{
"result": "Success"
}

Issue already exists:

{
"result": "There is already a JIRA issue for this crashgroup"
}

Response Fields

FieldTypeDescription
resultStringCreate operation result message

Error Responses

HTTP StatusResponse
400{ "result": "Missing params" }
404{ "result": "Could not find crash group" }
404{ "result": "App does not exist" }
500{ "result": "Missing access token, please log in to JIRA" }
500{ "result": "Failed to find JIRA access token" }
500{ "result": "Failed to find app" }
500{ "result": "Incomplete jira-crashes app config" }
500{ "result": "Failed to find crash group: ..." }
500{ "result": "Failed to connect to JIRA" }
500{ "result": "Failed to store JIRA issue" }
500{ "result": "<JIRA validation errors combined>" }

Behavior

  1. Validates app config under app.plugins["crashes-jira"] (project, type).
  2. Fetches crash group and checks if a mapping already exists.
  3. Creates issue in JIRA (/rest/api/3/issue) when missing.
  4. Stores mapping in crashes_jira{app_id} with issue.key and created timestamp.
Implementation details

Configuration Impact

SettingDefaultAffectsUser-visible impact
crashes-jira.*Crashes Jira integration defaultsJira integration logic and synchronization behavior.Changes to Jira integration settings can alter authentication, sync behavior, and returned integration state.

Database Collections

CollectionUsed forData touched by this endpoint
countly.appsApp configuration and metadataStores app-level feature settings and metadata used or modified by this endpoint.
countly.app_crashgroups{app_id}Endpoint data sourceStores endpoint-related records this endpoint reads or modifies.
countly.crashes_jiraEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.
countly.crashes_jira{app_id}Endpoint data sourceStores endpoint-related records this endpoint reads or modifies.