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
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
One of the newest products in the Microsoft family - Microsoft Teams, is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...
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