This example used the deprecated “JSON Path“ and will be updated soon.

This is a very basic example, as Wikipedia does not require authentification. It displays the content of the Wikipedia article with the given name for seamless knowledge integration into your Jira.

Datasource

Datasource type

REST Custom

Datasource URL

https://en.wikipedia.org/w/api.php
CODE

Datasource Test URL

?action=parse&page=Vancouver&format=json
CODE

Query

Query URL

?action=parse&page=:Title&format=json
CODE

Query JSON path

$.parse.text['*']
CODE

Converter

function convert(json) {
    var parsedJsonObject = JSON.parse(json);
    return [{ "wikipediaContent": parsedJsonObject }];
}
JS

Template

<link rel="stylesheet" href="https://en.wikipedia.org/w/load.php?debug=false&lang=en&modules=site.styles&only=styles&skin=vector">
 
$result.get(0).wikipediaContent
CODE