Error during JavaScript evaluation: Not all references of "current" are passed in by "arguments" script

MartinFRU
Mega Expert

Hi there,

i need help from someone.

"Error during JavaScript evaluation: Not all references of "current" are passed in by "arguments" script"
The issue is the above error message which comes up during a collection job.

What i need to do is to put records from incident_sla into 4 buckets by a certain text in the SLA Definition Name (i.e. Platin, Gold, Silver, Gold).

1. I created a bucket group with buckets 1-2 Bronze, 2-3 Silver, 3-4 Gold, 4-5 Platin.
2. I created a breakdown source using that bucket 
3. Created an automated breakdown using above defined source
- added breakdown mapping for incident_sla with script
- added the breakdown for 1 indicator (Showing all Incident SLAs for incidents resolved on today)

The script looks like this (rather simple script):
find_real_file.png

As i`m using "SLA Definition.Name" in the script i added it to the list of fields.

If i now run the collection job containing the related indicator i get the error message.
I have tried several things (current.sla.name.toString(), current.taskslatable_name, tried to add SLA Definition to fields etc.) - no luck at all (i even added ALL available fields to the list).

If i don`t enter any fields and leave the script field empty - same error. 

Any assistance highly appreciated!! 🙂

Martin

P.S.: I could do this adding a Choice field to the SLA Definition and bypass the need for a script - but i don`t want to add any fields (and actually the scripting approach should work just as good it think)

1 ACCEPTED SOLUTION

Slawek_Radziewi
Kilo Sage

Hi

Have you tried current.taskslatable_sla.name

View solution in original post

4 REPLIES 4

Slawek_Radziewi
Kilo Sage

Hi

Have you tried current.taskslatable_sla.name

MartinFRU
Mega Expert

Slawek,

you are my ...

find_real_file.png

...

Working like a charm!

Of course the notation is different as it`s a db_view.

Thanks! Thanks! Thanks! 🙂

Wish you a fantastic day!

Martin

Thanks and have a nice day as well.

yogesh15dd
Tera Guru

I have added the fact table fields, even then i get the same error, any help mates?

find_real_file.png