AccountService is not accessible from ScriptRunner and WorklogPRO scripts

Description

Can I get data of accounts and worklog with ScriptRunner scripts?

I need get information about accounts budget and actual amount of work hours for each open account. I want write Rest Point, wich return json.

Do you have some examples for working with accounts and worlogs?
I attached creenshot with my code, but it doesn't work.

Environment

None
Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Priority

Major

Assignee

Deniz Oğuz

Reporter

Deniz Oğuz

Fix versions