/
Create an issue from response from external system
Create an issue from response from external system
Here is an example
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.
, multiple selections available,
Related content
Create an Integration
Create an Integration
More like this
Update Jira custom field examples
Update Jira custom field examples
Read with this
Create a user and find a user
Create a user and find a user
More like this
Add New System
Add New System
Read with this
Incoming Webhooks example
Incoming Webhooks example
More like this
How to send an attachment
How to send an attachment
Read with this