On this page: https://developer.atlassian.com/cloud/jira/service-desk/automation-action/
There's a code sample at the bottom, which begins with:
$(function () { AP.require(["events"], function(events) { var automation = new AP.jiraServiceDesk.Automation();
What is 'AP'? I can't find the definition even in the sample plugin that this comes from, link. This is causing difficulty in adding Automation Actions to my own plugin.
Self-answer; it's from the Atlassian all.js that the plugin is installed on. So for a Cloud space at example.atlassian.net, the plugin requires example.atlassian.net/atlassian-connect/all-debug.js
It looks like you're new here. Sign in or register to get started.