SAP-Jira cloud integration (Using script listener)

Hi Team,

This is a general query regarding the Jira and SAP integration, we have successfully implemented the 2 tools authentication in Jira server version using Script listener plugin. But we tried the same process in Jira cloud version using script listener then it is not successful. We are aware that the SAP2jira plugin we can use for this purpose, still we are looking for an option to do it using scripting. Do you have any sample code for fetching the external API?

Thanks in advance,

Neenu Jose