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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.