Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Simple Issue Language™
Results will update as you type.
  • What's new in SIL®
  • Philosophy behind SIL™
  • Getting started
  • How it works
  • Configuring and installing guide
  • Simple Issue Language™ usage
    • Structure of a SIL™ program
    • Syntax and types
    • Operators
    • Variable resolution
    • Statements
    • Type conversion
    • Error handling
    • Predefined structure types
    • User-Defined routines (UDR)
    • Inclusions
    • Custom Field types
    • Routines
      • Array routines
      • Basic routines
      • Date and Interval routines
      • File Manipulation routines
      • HTTP routines
        • fromJson
        • httpBasicAuthHeader
        • httpCreateCookie
        • httpCreateHeader
        • httpCreateParameter
        • httpDelete
        • httpGet
        • httpGetCookie
        • httpGetErrorMessage
        • httpGetHeader
        • httpGetReasonPhrase
        • httpGetStatusCode
        • httpOptions
        • httpPatch
        • httpPost
        • httpPut
        • toJson
      • Integration with other systems
      • Jira Administration Routines
      • Jira Integration Routines
      • Math routines
      • Parameter routines
      • Scheduling routines
      • String routines
      • System integration
      • Webhooks routines
    • Advanced features
  • SIL™ Template language
  • Tools and utilities
  • Development using SIL
  • Common REST service
  • How-to articles
    Calendars
You‘re viewing this with anonymous access, so some content might be blocked.
/
HTTP routines

HTTP routines

Oct 22, 2021

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 !

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). Requests can also be sent through a proxy.
  • 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).
  • toJson — Converts any given struct, array or primitive parameter to a JSON string.

, multiple selections available,
{"serverDuration": 14, "requestCorrelationId": "5a1132a9dd634f9a8991a96042fb0b3e"}