Versions Compared

Key

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

Table of Contents

Support for parametrized GET/POST requests

XML / JSON Multi Request custom field obtains values from an XML / JSON response via XPath / JSONPath. This enables you to With the XML / JSON custom fields you can retrieve end-user data from external systems and display it on a support ticket.ticket. This article provides a few examples of how you can configure your HTTP feed custom fields for different versions of the plugin.

Table of Contents
maxLevel2

Support for parametrized GET/POST requests

Info

This section is relevant for the app versions starting from 2.0.1.


To configure the app to support passing fields values as argument for the http HTTP requests, perform the following steps:

  1. Add a custom field as described here.
  2. To configure custom field settings, click Edit XML/JSON HTTP Settings.Configure and configure the parameters as described in the table belowthe configuration table. The following picture shows an example of how you can configure the fields to show a list of employees.



  3. To finish the configuration click Save.

As a result, a select list custom field with a list of employees in JSON format is available in your selected issue screens.

Fields description

For each XML/JSON custom field that you add, there is a set of parameters to configure on the field configuration page. 

...

Field

...

Description

...

URL to the required resource.

For the GET requests it can contain GET parameters.

...

Username for basic access authentication (optional)

...

Proxy port

...

Proxy host

...

Proxy scheme (http or https)

...

Support for different values for JSONpath and XMLpath

...

Support for different values for JSON Path and XPath

Info

This section applies for v2.0.2 and above.


To test a JSON HTTP field, use the following resource: https://my-json-server.typicode.com/tperepelkin/requests/json.

JSON Path expressions to checkoptions:

  • $.ElapsedTime - single number value (new featureavailable in v2.0.2 and above)
  • $.PrimaryQueryResult.QueryId - single string value (new featureavailable in v2.0.2 and above)
  • $..Cells[2].Value - single string value (new featureavailable in v2.0.2 and above)
  • $..Cells[*].Key - an array of strings


To test an XML http HTTP field, use this the following resource: https://www.w3schools.com/xml/books.xml.

XPath expressions to checkoptions:

  • /bookstore/book[1]/author - single text value of the XML element node (new featureavailable in v2.0.2 and above)
  • /bookstore/book[1]/author/text() - single text value of the XML text node
  • /bookstore/book[*]/author - an array of text values , generated from the XML element nodes (new featureavailable in v2.0.2 and above)
  • /bookstore/book[*]/author/text() - an array of text values, generated from the XML text nodes

See also

HTTP - Adding XML/JSON Request Custom Field

HTTP - Adding XML/JSON Multi Request Custom Field