Skip to main content

List crash JIRA issues

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

/o?method=crashes-jira

Overview

Returns JIRA issue mappings for one or more crash groups and adds a computed JIRA browse URL.

Authentication

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

Permissions

  • Required permission: Read on the crashes feature

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be crashes-jira
app_idStringYesApplication identifier
crashgroup_idStringNoSingle crash group ID
crashgroupsArray/StringNoArray of crash group IDs
api_keyStringYes (or auth_token)API key authentication
auth_tokenStringYes (or api_key)Auth token authentication

Examples

Example 1: List one crash group's issue mapping

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

Example 2: List mappings for multiple crash groups

/o?method=crashes-jira&app_id=5f9c8a3b4d1e2a001f3b4567&crashgroups[]=65c5f2782c5f5300121a00c1&crashgroups[]=65c5f27f2c5f5300121a00c2&api_key=YOUR_API_KEY

Response

Success Response

[
{
"_id": "65c5f2782c5f5300121a00c1",
"issue": {
"key": "MOB-1234"
},
"created": 1739629012,
"lastChecked": 1739630010,
"url": "https://jira.example.com/browse/MOB-1234"
}
]

Response Fields

FieldTypeDescription
_idStringCrash group ID
issueObjectStored JIRA issue metadata
issue.keyStringJIRA issue key
createdNumberMapping creation timestamp (unix seconds)
lastCheckedNumberLast sync check timestamp (unix seconds)
urlStringComputed JIRA browse URL (api_url + /browse/<key>)

Error Responses

HTTP StatusResponse
401{ "result": "User does not exist" } or auth validation message

Behavior

  • Requires Read permission on the crashes feature.
  • Reads the plugin configuration and uses crashes-jira.api_url to build returned JIRA browse links.
  • Builds the crash group list from crashgroups when provided; otherwise uses a single-element list containing crashgroup_id.
  • Queries crashes_jira{app_id} for documents whose _id is in that crash group list.
  • Adds url to each returned mapping as <api_url>/browse/<issue.key>.
  • The handler does not currently return a custom error body for database read failures in this branch.
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.crashes_jira{app_id}Endpoint data sourceStores endpoint-related records this endpoint reads or modifies.