Nodinite
How to guide on how to create alarm issues from Nodinite.
Use Nodinites excellent webhook to POST data to Jira and map that to issues using iHub.
Result
This tutorial should result in issues being created when alarms goes off in Nodinite.
Step 1. Webhook in Nodinite
Set up a webhook in Nodinite, see doc https://documentation.nodinite.com/Documentation/Administration?doc=/5.%20Settings/1.%20Alarm%20Plugins/Features/HTTP%20Webhook
Enter the Incoming Webhook URL for Integrations hub for Jira found on the Incoming Webhooks page in the blue info box. (baseUrl/rest/restfulintegrator/1.0/incoming)
Use basic auth as auth.This will send the alarms to iHub Incoming Webhook rule engine.
You can test sending an alarm using the webhook and view the Logs tab on the Incoming Webhook section. This will show how the data looks like.
An example payload exists here:Â
Step 2. Setup Integration to create the issues
Click create and select a Group called Nodinite
Click create and select an Iteration called Nodinite - Iterate monitors
Set Json Path to array: $.MonitorViews
This will tell iHub to go through each Monitor View in Nodinite.
Next is to add the the Action that creates the issues
Click create and select Action
Choose template category Jira Core
Choose template Create Issue
Click Create
Structure should look like thisMake sure the action has Auto-generate 1st level as variables from parent response selected
Select the credential
Modify this body to fit your instance
{ "fields": { "project": { "key": "ITSUP" }, "summary": "Monitor: {{Name}}", "issuetype": { "name": "Task" }, "description":"{{Description}} has Status {{StatusCode.Name}} for resources: {{#ChangedResources}} * {{Name}}{{/ChangedResources}}", "reporter": { "name": "kg" }, "labels": [ "nodinite", "alarm" ] } }