Documentation

request

Methods

request(url, options)

execute an XMLHttpRequest in the context of the host application

Parameters:
Name Type Description
url String

either the URI to request or an options object (as below) containing at least a 'url' property;
this value should be relative to the context path of the host application.

options RequestProperties

an RequestProperties object.

Example
// Display an alert box with a list of JIRA dashboards using the JIRA REST API.
AP.require('request', function(request){
  request({
    url: '/rest/api/2/dashboard',
    success: function(responseText){
      alert(responseText);
    }
  });
});