Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 4.1.0.

Syntax

httpPost(url, request [, postDataObject])

Starting with SIL Engine™ 4.5.0: 

httpPost(url, request [[, proxy] [, postDataObject]])

Description

Excerpt

Executes a 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

Parameter

name

Type

Required

Description

url

string

Yes

The URL.

requestHttpRequestYesA HttpRequest object containing headers, cookies, parameters.
proxyHttpProxyNoAn HttpProxy object containing the host and port of the proxy server.
postDataObjectvariable: primitive type, array or structNoData to be posted.

The request parameter should have the HttpRequest type HttpRequest described here. The HttpProxy type is described here.

Return type

variable return type - depending on the left hand side operator type

...

Using this routine, you can for instance create a new ticket in the specified project based for instance based on certain conditions, and pass the information for the additional fields to be filled in for this ticket too.

...