Please help using javascript code pull already created field in jira

Good afternoon!
I already figured out this problem, Can you help me on this issue?
Grouping by values in a field - Questions & Answers - eazyBI Community

I have not been able to solve this problem for many many days