Hi
I have a Jira automation that creates a number of new tasks in a different project and links them back to the original issue. It clones the data into the new project, as shown in the partial screenshot:

This solution has 2 problems:
It only works up to 14 or so new tasks (Antal Afskibninger) before i run into the 65 component limitation,
and now I have a new requirement that the list of new tasks comes from an external webcall where each object in an array should be created as new linked issue (before it was just a number i a field i could unroll).
Without a loop construct in Jira Automation i cant see how i can iterate over the json array and thus I have been looking a ScriptRunner to see if that fixes my issues.
ScriptRunner in cloud seems to be sort of limited, as it can not plug in to the automation and thus I have to use a Script Listener.
First question: It is correctly understood, and not just en error by me, that ScriptRunner Cloud can not work directly in Jiras Automation framework?
Second question: For ScriptRunnner i have the feeling that i have all the components in a ScriptListener needed to solve this problem. Im struggling with putting them together for a solution.
I need the issue to be in a specific status:
issue.status="Klar til Ordrebehandling"
But i also need the links not to contain links that are "Afskibninger". Does anyone have idea how to do this?
For rest of script:
First i need to call an external web service and loop, i got that covered as:
baseUrl = "myUrl"
def response = get('BC13EXT/ODataV4/SalesOrders')
.queryString([ company: 'My company', '$filter': "Document_No eq 'SO123'"]) .header("accept", "application/json")
.header("Authorization", "auth string")
.asObject(Map)
.body
.value
response.each { item -> /*do stuff here*/ }
which works in the script console. For the do stuff part:
Is the better way to encapsulate this in a jira automation triggered by an incoming webhook, where i give the parent issue key and and field data to this webhook.
Or
Is the better way to call first
POST rest/api/2/issue/
and then
POST rest/api/2/issueLink
for each that i need to have created and linked.
Is there any actual difference on any of these approaches.
Thanks in advance for any clarifications 
Best
Jens