Template Audit Logs API
Get Template Audit Logs
Retrieve audit logs for template-related activities including creation, updates, deletions, and applications.
Endpoint
GET /rest/smartissuetemplates/1.0/template/audit
Parameters
Parameter  | Type  | Required  | Default  | Description  | 
|---|---|---|---|---|
  | int  | No  | -  | Filter by specific template ID  | 
  | string  | No  | -  | Filter by user who performed action  | 
  | string  | No  | -  | Filter by action type (CREATED, UPDATED, DELETED, APPLIED)  | 
  | string  | No  | -  | Start date (ISO 8601 format)  | 
  | string  | No  | -  | End date (ISO 8601 format)  | 
  | int  | No  | 50  | Maximum number of records to return  | 
  | int  | No  | 0  | Starting position for pagination  | 
Request Example
curl -X GET \
  "https://your-jira-instance.com/rest/smartissuetemplates/1.0/template/audit?templateId=123&actionType=APPLIED&limit=20" \
  -H "Authorization: Basic <base64-credentials>" \
  -H "Accept: application/json"
Response
{
  "auditLogs": [
    {
      "id": 10001,
      "timestamp": "2024-01-20T14:30:00.000Z",
      "actionType": "TEMPLATE_APPLIED",
      "templateId": 123,
      "templateName": "Bug Report Template",
      "user": {
        "userKey": "john.doe",
        "displayName": "John Doe",
        "emailAddress": "john.doe@company.com"
      },
      "details": {
        "targetProject": {
          "projectId": 10001,
          "projectKey": "DEV",
          "projectName": "Development Project"
        },
        "createdIssue": {
          "issueKey": "DEV-1234",
          "issueId": 10001,
          "summary": "Login page validation error"
        }
      },
      "ipAddress": "192.168.1.100"
    }
  ],
  "totalCount": 156,
  "startAt": 0,
  "maxResults": 20
}
Action Types
TEMPLATE_CREATED- Template creationTEMPLATE_UPDATED- Template modificationTEMPLATE_DELETED- Template deletionTEMPLATE_APPLIED- Template applied to create issueTEMPLATE_DUPLICATED- Template duplicatedTEMPLATE_SCOPE_CHANGED- Template scope assignment changed
Usage Examples
Get all audit logs for a specific template:
GET /rest/smartissuetemplates/1.0/template/audit?templateId=123
Get template applications in the last 30 days:
GET /rest/smartissuetemplates/1.0/template/audit?actionType=TEMPLATE_APPLIED&fromDate=2024-01-01T00:00:00.000Z
Get audit logs for a specific user:
GET /rest/smartissuetemplates/1.0/template/audit?userKey=john.doe&limit=100