Create an issue from response from external system

Here is an example

  1. Create an action in the Integrations menu that calls a system lets say

Get person from SWAPI GET https://swapi.dev/api/people/1

This returns Luke Skyewalker as a JSON

{ "name": "Luke Skywalker", "height": "172", "mass": "77", "url": "https://swapi.dev/api/people/1",....(cut)

Now we want to create an issue on that response, create a new integration and select Jira Core as template and parent would be the first call Get person from SWAPI

This will create a structure like this

  • Get person from SWAPI

    • Create Jira issue

The Create Jira issue  should have the following template

POST {{baseUrl}}/rest/api/2/issue
With a authentication selected as Basic auth user
Body

{ "fields": { "project": { "id": "10100" }, "summary": "{{name}}", "issuetype": { "id": "10001" }, "reporter": { "name": "kg" }, "labels": [ "swapi" ], "customfield_10201":"{{ url }}" } }

 Now when ever the 1. Get person from SWAPI is called it will create an issue with the name of the person and the url to that person added in a custom field.