Skip to end of banner
Go to start of banner

HTTP Routines

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

This section contains routines that help you unleash the integration opportunities and basically achieve anything that Jira REST API allows even if you don't have a particular routine.Choose and click to integrate external systems in minutes — Salesforce, Telcom systems, Zendesk, Bitbucket, Bamboo, Confluence, and so on! You’ve got lots of options - keep two Jira instances in sync, create a Confluence page based on an event in Jira, sync data between Jira and Salesforce, etc. The sky’s the limit. 

Writing scripts that require authentication was a tricky thing in the past. We’ve modernize these tools to simplify the process for you — header, cookie...etc. Go see for yourself. 

Before, people struggled with character limit in the responses. Now, there’s no limitations in gathering all the data you need, and no data loss.

Routines summary

  • fromJson — Converts the given JSON string into a SIL type (can be a primitive, array or struct).
  • httpBasicAuthHeader — Creates an HttpHeader object to be used as Authorization header for a Basic authentication of a user.
  • httpCreateCookie — Creates an HttpCookie object.
  • httpCreateHeader — Creates an HttpHeader object.
  • httpCreateParameter — Creates an HttpQueryParam object.
  • httpDelete — Executes an HTTP DELETE for a given URL using the specified HttpRequest object. The needed parameters can either be included in the initial url or they can be created using the httpCreateParameter routine and added to the HttpRequest parameter.
  • httpGet — Executes an HTTP GET for the given URL using the specified HttpRequest object. The needed parameters can either be included in the initial url or they can be created using the httpCreateParameter routine and added to the HttpRequest parameter.
  • httpGetCookie — Retrieves the value of the specified cookie (if existing) from the latest HTTP response.
  • httpGetErrorMessage — Retrieves an error message (if any) generated by the latest HTTP request
  • httpGetHeader — Retrieves the value of the specified header (if existing) from the latest HTTP response.
  • httpGetReasonPhrase — Retrieves the HTTP reason phrase of the latest HTTP response. For instance, "OK", "Not Found", "Unsupported Media Type", and so on.
  • httpGetStatusCode — Retrieves the HTTP status code of the latest HTTP response.
  • httpOptions — Executes an HTTP OPTIONS for the given URL using the specified HttpRequest object. Returns the message body of the response converted to the requested left operand type (if any).
  • httpPatch — Executes an HTTP PATCH for the given URL using the specified HttpRequest object. The data used for the PATCH 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 and so on).
  • httpPost — 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).
  • httpPut — Executes an HTTP PUT for the given URL using the specified HttpRequest object. The data used for the PUT 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).
  • No labels