I'm trying to get issue data from JIRA Cloud REST API by running the following javascript function:

but getting the following error:

How can I resolve this problem? What I'm trying to achieve is to get issue data from JIRA Cloud REST API, display those on a single web page and group by customer, assignee, status etc.