This is very confused as a question.
1) What does the title mean? What does it have to do with the body of the question? If you do mean to ask about that, then you'll need to explain what your script is supposed to be doing and what it actually does, and probably give us the relevant lines of it.
2) All I can tell you on the body of the question is below, because you've not told us what you're trying to do at all
2.1) Write the script in the right place
2.2) You import the classes you need for your script to run
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs