Timepiece - Time in Status for Jira

How to Log and Monitor Timepiece Actions in Jira Automation

Business Need

You should check the audit logs of your Jira Automation rule to ensure that Timepiece data is retrieved correctly and to troubleshoot any potential execution errors.

Solution

First, configure the logging points within your automation rule to output the background data.

  • Open your Automation rule.

  • Click Add action and select the “LOG ACTION” action.

The following log configurations can be implemented within your automation rules to track and audit your Timepiece workflows

How to Log Raw Report Data?

This log action is used to output the entire raw dataset returned by the Timepiece report to ensure the report data is pulled successfully.

Step 1: Configure the Log Action

Logging the entire result list from the Timepiece report
  • Log Message: resultList: {{fetchedTimepieceResultList}}

Step 2: Verify the Output in the Audit Log

Audit log output showing the entire result list from the Timepiece report

How to Log the Calculated Variable?

This log action displays the specific value stored within your custom variable. Once the metric is extracted from the dataset and stored in the variable, this action logs the value to verify it has been processed correctly.

Step 1: Configure the Log Action

Logging the created CycleTimeMetric variable into the audit log
  • Log Message: {{CycleTimeMetric}}

Step 2: Verify the Output in the Audit Log

Audit log output showing the value of the CycleTimeMetric variable

How to Log Specific Key Fields in a Branch?

This log action is used to list only the issue keys (like SSP-1, SSP-2) side by side with commas. It helps you quickly see which issues are being processed by the automation.

Step 1: Configure the Log Action

Logging a comma-separated list of issue keys from the Timepiece report.
  • Log Message: {{fetchedTimepieceResultList.Key.join(",")}}

Step 2 : Verify the Output in the Audit Log

Branch-Action Log Result.png

How to Log the First Item of the Dataset?

This log action is used to output only the first row of the retrieved dataset to ensure you are targeting the correct issue data.

Step 1: Configure the Log Action

Logging the full details of the first result row from the Timepiece report
  • Log Message: resultList.first: {{fetchedTimepieceResultList.first()}}

Log the specific field value directly from that isolated first row to verify you can pull the exact metric you need from it.

A Comment Previous Status Duration automation interface configuring a Log action step to write a specific field change value
  • Log Message: resultList.first Backlog: {{fetchedTimepieceResultList.first().get(fieldChange.fromString)}}

Step 2: Verify the Output in the Audit Log

A Jira automation audit log interface displaying the execution details of two Log action steps,