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( https://github.com/request/request ). See “How to send a signed outbound HTTP request back to the host” at https://bitbucket.org/atlassian/atlassian-connect-express/src/14c59134b0f65102e267192a852f077df5e5a395/README.md?at=master&fileviewer=file-view-default

1 Like

Many thanks, exactly what I was looking for.