The CreatorCon Call for Content is officially open! Get started here.

Need help to create metric using the Updated by field.

mark141230
Tera Expert

Hi everyone,

I am having problems activating a metric that i can use for my report.

I use the updated by field in the metrics in order for me to get all the people who updated or share inputs for a particular ticket.

Someone discuss this on the other thread and I followed what the instruction but still no luck.

Heres what I did.

1. I created a Business rule in the incident table.

Table: Incident

Run at: Server

Advanced: Check

When to run: After

Insert / Update

Script:

var gru =   new GlideScriptRecordUtil.get(current)

var fieldsChanged = gru.getChangedFieldNames();

gs.eventQueue('metric.update', current, '[sys_updated_by]',1, 'metric_update');

Metrics > Definition

Table: Incident

Field: updated by

Type: Duration

Active

Script: blank

This all i did but didn't work. Hope someone can help me.

Many thank in advance

5 REPLIES 5

I was actually searching for this thread to answer your question