When the Event Auditing feature of Snowflake for Jira is enabled, a number of different action messages are written to the S4J_EVENT_AUDIT table as the app makes changes in your Snowflake instance. These actions are explained later in this document.
The S4J_EVENT_AUDIT table has the following schema:
|
Column |
Type |
Description |
|---|---|---|
|
ID |
INT |
Autogenerated ID |
|
REQUESTID |
VARCHAR |
ID of request associated with the action |
|
TABLENAME |
VARCHAR |
Table name associated with the action |
|
USERACCOUNTID |
VARCHAR |
ID of user who triggered the action |
|
ACTION |
VARCHAR |
Action description |
|
STARTTIME |
DATETIME |
Timestamp for start of the action |
|
STOPTIME |
DATETIME |
Timestamp for end of the action |
|
EXCEPTION |
VARCHAR |
Exception message associated with the action |
An individual request will typically have multiple actions associated with it and may include multiple tables. When querying the S4J_EVENT_AUDIT table, it is best to group messages by REQUESTID and then order them by STARTTIME. The TABLENAME value of the first record will show the main export’s table name from the S4J_EXPORTS table. All actions should include a STARTTIME and STOPTIME value that will allow you to determine the duration of the action, and to match these actions to queries in Snowflake query history.
Action Descriptions
-
CREATE
Written at the start of a new export being created. -
REALTIME EVENT UPDATE
Written at the start of an export update because of an event received from Jira. -
INCREMENTAL UPDATE
Written at the start of an incremental update of an export. -
SCHEDULED UPDATE
Written at the start of a scheduled update of an export. -
ADD ISSUE DATA UPDATE
Written at the start of an “Add Issue Data” update to an export. -
MANUAL UPDATE
Written at the start of a manual update of an export. -
TEMPO WORKLOG UPSERT
Written when one or more Tempo worklog records are inserted or updated in the S4J_TEMPOWORKLOGS table. -
DATA UPSERT
Written when records are inserted or updated in various tables. The specific table will be included in the TABLENAME column value of the record. This action applies to the following tables:-
S4J_ASSETS_HISTORY
-
S4J_CHANGELOGS
-
S4J_ISSUE_SLA_CYCLES
-
S4J_TIME_IN_STATUS
-
-
FORM DATA UPSERT
Written when data is inserted or updated in the S4J_FORMS table. -
{TABLENAME} DATA UPSERT
Written when records are inserted or updated in various tables. The specific table is included in the ACTION column value of the record, as well as the TABLENAME column value of the record. This action applies to a number of third-party plugin data tables, primarily Tempo Financial Manager and Xray. -
ISSUE ASSET UPSERT
Written when records are inserted or updated in the S4J_BRIDGE_ISSUE_ASSETS table. -
ISSUE DATA UPSERT ({CURRENT}/{TOTAL})
Written when a batch of up to 100 records are written to the main export table. {CURRENT} is the number of the recorded batch, and {TOTAL} is the total number of batches expected in the update.-
NOTE: If a batch fails, the EXCEPTION column will be populated in the record, and entries will be written to the S4J_EVENT_AUDIT_ISSUES table for each work item key present in the batch. Use the REQUESTID column to match failed work item keys to specific exports in the S4J_EVENT_AUDIT table.
-
-
JIRA WORKLOG UPSERT
Written when records are inserted or updated in the S4J_WORKLOGS table. -
REMOVE MATCHED ROWS
Written when an existing export has rows deleted before updated rows are added. -
UPDATE
Written when records are inserted or updated in various tables. The specific table will be included in the TABLENAME column value of the record. This action applies to the following tables:-
S4J_ASSETS
-
S4J_ASSETS_ATTRIBUTES
-
S4J_ASSETS_OBJECT_SCHEMAS
-
S4J_BOARDS
-
S4J_COMPONENTS
-
S4J_FIELD_MAPPING
-
S4J_ISSUETYPES
-
S4J_PROJECTS
-
S4J_SPRINTS
-
S4J_TEMPOGENERIC_RESOURCES
-
S4J_TEMPOPLANS
-
S4J_USERS
-
S4J_VERSIONS
-
-
FLAG DELETES
Written when existing records in the table have their DELETED flag set. -
REMOVE DELETED ISSUES
Written when existing work item records in the table are removed because the work items were deleted from Jira. -
REMOVE WORKLOGS FOR DELETED ISSUES
Written when existing worklog records in the table are removed because the work items associated with the records were deleted from Jira. -
REMOVE DELETED WORKLOGS BY ID
Written when existing worklog records in the table are removed because the worklogs were deleted from Jira. -
SET PROJECT STATUS
Written when existing project records in S4J_PROJECTS receive status changes. -
UPDATE REVIEW STATUS - TEAM {TEAMID}
Written when Tempo worklog records for the {TEAMID} team receive review status changes.