ScriptRunner-Web Panel-Button(atl-jira-view-issue-right-context)

Hi,

I am using a script Runner for displaying web panel - button(atl-Jira-view-issue-right-context) and perform actions. and Button is displaying but actions are not performed. and I am a new Lerner.
Jira-7.13.0
how to add onclick function to call Rest API OR what I need to do?

Regards,
Shital.