Automation Actions plugin sample - What is AP?

Thomas Knight April 7, 2017

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.

1 answer

1 accepted

0 votes
Answer accepted
Thomas Knight April 24, 2017

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

Suggest an answer

Log in or Sign up to answer