I have a requirement to create get rest api class in script runner using groovy
Your statement does not make any sense, it's not even a question to begin with. We all have requirements?
The only thing that I can infer from it is you're trying to create a REST endpoint - https://docs.adaptavist.com/sr4js/latest/features/rest-endpoints
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.