REST API call from Workflow Post Function trigger

I am working on a plugin using Atlassian Connect Express to automate some housekeeping tasks for our dev team.

I have created a workflow post function with the goal of creating missing sub-tasks if needed.
In the edit and create endpoints I have access to AP (all.js) and am able to make api calls via AP.request.
However in the triggered endpoint I do not have access to this - there is no page being rendered.

Does anyone know of a way to get hold of AP.request, or does Express provide a similar abstraction in this context?

Any help would be appreciated.

Atlassian Connect Express (ACE) provides an enriched version of request( GitHub - request/request: 🏊🏾 Simplified HTTP request client. ). See “How to send a signed outbound HTTP request back to the host” at Bitbucket

1 Like

Many thanks, exactly what I was looking for.