httpPost
Description
Executes an HTTP POST for the given URL using the specified HttpRequest object. The posted data can be either included in the request object (as name-value parameters) or it can be added as a separate parameter (in the case of JSON, struct etc).Requests can also be sent through a proxy.
Parameters
Return Type
String
Variable return type depends on the left hand side operator type.
Examples
Part 1 - Setting Up
Using this function, you can create a new ticket in the specified project for instance based on certain conditions, and pass the information for the additional fields to be filled in for this ticket too.
The following example shows how to create a JSON object, transmit it to an external application, and receive data in response. The example simulates creating a user account on another system and receiving back the user ID.
This ID could then be stored in a custom field in Jira creating a reference.This section of code defines the structs that will ultimately determine the JSON structure. The JSON structure is typically defined by the external systems API.
//Define structs
struct property {
string property;
string value;