Respond to New Relic alerts
Send this guide to your coding agent.
Prerequisite: Install Port MCP
Open plan mode. Implement this Port guide in my org via MCP: https://docs.port.io/guides/all/respond-to-new-relic-alerts Goal: get the guide's core flow working end-to-end in my org; adapting it to fit my existing setup takes priority over matching the guide 1:1. Plan: 1. Confirm MCP is connected, in the right org, with sufficient permissions. 2. Diff the guide's data model (blueprints, properties, relations, actions, agents, automations, integrations, secrets) against mine. 3. Propose adaptations for gaps, reusing existing blueprints/relations over guide-named duplicates. 4. Flag what needs a UI click, credential, or secret from me, testing MCP capability empirically before ruling anything out. 5. Stop on any blocker and give me options. Approving this plan authorizes the writes it lists; pause only for writes beyond what's listed. Build: - Extend blueprint schema additively when upserting; don't remove or overwrite existing properties, and treat type conflicts as a blocker, not an auto-fix. - List any mock data in the plan, minimal and labeled mock; once approved, seed it without re-asking, and tell me what you seeded. - For anything the guide writes downstream (e.g. a webhook target), use a real entity, not a mock. - For pages/widgets, use the real page identifier from the app URL, not a guessed slug. - When you hit a UI step confirmed (not assumed) unsupported via MCP, pause, give exact clicks, then resume via MCP. - Validate and give links after each meaningful step (only a tool-returned URL, no guessed paths); don't proceed if the last run wasn't a success. Done: - Confirm the guide's expected output exists and runs in Port. - Summarize adaptations, seeded data, what was mocked or skipped, remaining UI steps, and how to verify.
This guide demonstrates how to respond to New Relic alerts by creating Jira issues or PagerDuty incidents through Port using a synced webhook or GitHub workflow.
The PagerDuty response path uses the relationships in your software catalog to preselect the affected service and route the incident with New Relic alert context.
Prerequisites
- Complete the onboarding process.
- Install Port's New Relic integration.
- Install Port's GitHub integration if you want to use the GitHub workflow backend.
- Jira
- PagerDuty
To create Jira issues, you also need:
- Access to your Jira organization with permission to create issues.
- A Jira API token with permission to create issues.
- Port's Jira integration, or the ability to create the Jira issue blueprint manually.
To create PagerDuty incidents, you also need:
- Access to your PagerDuty organization with permission to manage incidents.
- Port's PagerDuty integration, or the ability to create the PagerDuty blueprints manually.
Set up data model
The New Relic, Jira, and PagerDuty integrations create their respective blueprints automatically. If you do not install one of these integrations, use the relevant steps below to create its blueprints manually.
Create the New Relic alert blueprint
-
Go to the Builder page of your portal.
-
Click on + Blueprint.
-
Click on Edit JSON.
-
Copy and paste the following JSON configuration into the editor:
New Relic alert blueprint (Click to expand)
{"identifier": "newRelicAlert","description": "This blueprint represents a New Relic alert in our software catalog","title": "New Relic Alert","icon": "NewRelic","ownership": {"type": "Inherited","title": "Owning Teams","path": "alert_to_workload.service"},"schema": {"properties": {"priority": {"type": "string","title": "Priority","enum": ["CRITICAL","HIGH","MEDIUM","LOW"],"enumColors": {"CRITICAL": "red","HIGH": "red","MEDIUM": "yellow","LOW": "green"}},"state": {"type": "string","title": "State","enum": ["ACTIVATED","CLOSED","CREATED"],"enumColors": {"ACTIVATED": "yellow","CLOSED": "green","CREATED": "lightGray"}},"sources": {"type": "array","items": {"type": "string"},"title": "Sources"},"alertPolicyNames": {"type": "array","items": {"type": "string"},"title": "Alert Policy Names"},"conditionName": {"type": "array","items": {"type": "string"},"title": "Condition Name"},"link": {"type": "string","title": "Link","format": "url"},"description": {"type": "string","title": "Description"},"activatedAt": {"type": "string","title": "Activated at","format": "date-time"}},"required": []},"mirrorProperties": {"cloud_resource_name": {"title": "Cloud Resource","path": "cloud_resource.$title"},"port_service": {"title": "Service","path": "alert_to_workload.service.$title"},"team": {"title": "Team","path": "alert_to_workload.service.$team"},"workload_name": {"title": "Workload name","path": "alert_to_workload.$title"},"pager_duty_service": {"title": "PagerDuty service","path": "alert_to_workload.service.pager_duty_service.$identifier"}},"calculationProperties": {},"aggregationProperties": {},"relations": {"alert_to_workload": {"title": "Workload","target": "workload","required": false,"many": false},"cloud_resource": {"title": "Cloud resource","target": "newRelicCloudResource","required": false,"many": false}}} -
Click Save to create the blueprint.
- Jira
- PagerDuty
Create the Jira issue blueprint
-
Go to the Builder page of your portal.
-
Click on + Blueprint.
-
Click on Edit JSON.
-
Copy and paste the following JSON configuration into the editor:
Jira issue blueprint (Click to expand)
{"identifier": "jiraIssue","title": "Jira Issue","icon": "Jira","schema": {"properties": {"url": {"title": "Issue URL","type": "string","format": "url","description": "URL to the issue in Jira"},"status": {"title": "Status","type": "string","description": "The status of the issue"},"issueType": {"title": "Type","type": "string","description": "The type of the issue"},"components": {"title": "Components","type": "array","description": "The components related to this issue"},"assignee": {"title": "Assignee","type": "string","format": "user","description": "The user assigned to the issue"},"reporter": {"title": "Reporter","type": "string","description": "The user that reported the issue","format": "user"},"priority": {"title": "Priority","type": "string","description": "The priority of the issue"},"created": {"title": "Created at","type": "string","description": "The date and time when the issue was created","format": "date-time"},"updated": {"title": "Updated at","type": "string","description": "The date and time when the issue was updated","format": "date-time"}}},"calculationProperties": {},"relations": {}} -
Click Save to create the blueprint.
Create the PagerDuty service blueprint
-
Go to the Builder page of your portal.
-
Click on + Blueprint.
-
Click on Edit JSON.
-
Copy and paste the following JSON configuration into the editor:
PagerDuty service blueprint (Click to expand)
{"identifier": "pagerdutyService","description": "This blueprint represents a PagerDuty service in our software catalog","title": "PagerDuty Service","icon": "pagerduty","schema": {"properties": {"description": {"type": "string","title": "Description"},"status": {"type": "string","title": "Status","enum": ["active","warning","critical","maintenance","disabled"]},"url": {"type": "string","format": "url","title": "Service URL"},"created_at": {"type": "string","format": "date-time","title": "Created at"},"updated_at": {"type": "string","format": "date-time","title": "Updated at"}},"required": []},"mirrorProperties": {},"calculationProperties": {},"relations": {}} -
Click Save to create the blueprint.
Create the PagerDuty incident blueprint
-
Go to the Builder page of your portal.
-
Click on + Blueprint.
-
Click on Edit JSON.
-
Copy and paste the following JSON configuration into the editor:
PagerDuty incident blueprint (Click to expand)
{"identifier": "pagerdutyIncident","description": "This blueprint represents a PagerDuty incident in our software catalog","title": "PagerDuty Incident","icon": "pagerduty","schema": {"properties": {"status": {"type": "string","title": "Incident status","enum": ["triggered","annotated","acknowledged","reassigned","escalated","reopened","resolved"]},"url": {"type": "string","format": "url","title": "Incident URL"},"urgency": {"type": "string","title": "Incident urgency","enum": ["high","low"]},"responder": {"type": "string","title": "Assignee"},"escalation_policy": {"type": "string","title": "Escalation policy"},"created_at": {"title": "Created at","type": "string","format": "date-time"},"updated_at": {"title": "Updated at","type": "string","format": "date-time"}},"required": []},"mirrorProperties": {},"calculationProperties": {},"relations": {"pagerdutyService": {"title": "PagerDuty Service","target": "pagerdutyService","required": false,"many": true}}} -
Click Save to create the blueprint.
Create alert response
Choose where you want to create the response, then select the synced webhook or GitHub workflow backend.
- Jira
- PagerDuty
Create a Jira issue
Use this path to turn a New Relic alert into a Jira bug that includes the alert description, link, and reporting user.
- Synced webhook
- GitHub workflow
The synced webhook calls Jira's API directly from Port.
Add Port secret
If you have already installed Port's Jira integration, these secrets should already exist in your portal.
To view your existing secrets:
- In your Port application, click on your profile picture
.
- Choose Credentials, then click on the
Secretstab.
Add a Base64-encoded Jira credential to your portal:
-
In Port, click on your profile picture
.
-
Click on Credentials.
-
Click on the Secrets tab.
-
Click on + Secret and add
JIRA_AUTH. Generate its value by running:echo -n "your-email@domain.com:your-api-token" | base64Replace
your-email@domain.comwith the Jira user's email andyour-api-tokenwith that user's Jira API token. You only need to regenerate the value when the email or token changes.
Set up self-service action
Follow the steps below to create a self-service action that calls the Jira API.
-
Go to the Self-service page of your portal.
-
Click on the + New Action button.
-
Click on the
{...} Edit JSONbutton. -
Copy and paste the following JSON configuration into the editor:
Report a bug from a New Relic alert (Click to expand)
{"identifier": "report_a_jira_bug_from_new_relic_alert","title": "Report a bug from New Relic alert (Webhook)","icon": "Jira","description": "Report a Jira bug in Port based on a New Relic alert.","trigger": {"type": "self-service","operation": "DAY-2","userInputs": {"properties": {"project": {"title": "Project","description": "The Jira project where the bug will be created","icon": "Jira","type": "string","blueprint": "jiraProject","format": "entity"}},"required": ["project"],"order": ["project"]},"blueprintIdentifier": "newRelicAlert"},"invocationMethod": {"type": "WEBHOOK","url": "https://<JIRA_ORGANIZATION_URL>.atlassian.net/rest/api/3/issue","agent": false,"synchronized": true,"method": "POST","headers": {"Authorization": "Basic {{ .secrets.JIRA_AUTH }}","Content-Type": "application/json"},"body": {"fields": {"project": {"key": "{{ .inputs.project.identifier }}"},"summary": "Bug | New Relic | {{ .entity.title }}","description": {"version": 1,"type": "doc","content": [{"type": "paragraph","content": [{"type": "text","text": "\nNew Relic description: {{ .entity.properties.description }}\n\nNew Relic link: {{ .entity.properties.link }}"}]},{"type": "paragraph","content": [{"type": "text","text": "Reported by: {{ .trigger.by.user.email }}"}]}]},"issuetype": {"name": "Bug"}}}},"requiredApproval": false}Replace
<JIRA_ORGANIZATION_URL>with your Jira organization subdomain. For example, useexampleforhttps://example.atlassian.net. -
Click Save to create the action.
Test the flow
-
Go to the Self-service page of your portal.
-
Run the Report a bug from New Relic alert (Webhook) action.
-
Select the New Relic alert and the Jira project where you want to create the bug.
-
Click Execute.
-
Confirm that the new bug appears in the selected Jira project.
The GitHub workflow keeps the Jira automation in source control and reports its progress to the Port action run.
Add GitHub secrets
In your GitHub repository, open Settings > Secrets and variables > Actions and add:
JIRA_API_TOKEN- The Jira API token generated by the Jira user.JIRA_BASE_URL- The URL of your Jira organization, such ashttps://your-organization.atlassian.net.JIRA_USER_EMAIL- The email of the Jira user that owns the token.PORT_CLIENT_ID- Your Port client ID.PORT_CLIENT_SECRET- Your Port client secret.
Add GitHub workflow
To create Jira bugs from Port, add a workflow that finds the reporting user, creates the issue, and updates the Port action run.
Create .github/workflows/report-a-bug.yml in the .github/workflows folder of your repository.
We recommend creating a dedicated repository for the workflows that are used by Port actions.
Report a Jira bug workflow (Click to expand)
name: Report a bug in Jira
on:
workflow_dispatch:
inputs:
project:
required: true
type: string
description:
required: true
type: string
short_title:
required: true
type: string
port_context:
required: true
type: string
jobs:
create_jira_issue:
runs-on: ubuntu-latest
steps:
- name: Log in to Jira
uses: atlassian/gajira-login@v3
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Report user search
uses: port-labs/port-github-action@v1
with:
clientId: ${{ secrets.PORT_CLIENT_ID }}
clientSecret: ${{ secrets.PORT_CLIENT_SECRET }}
operation: PATCH_RUN
runId: ${{ fromJson(inputs.port_context).run_id }}
logMessage: Searching for the reporting user in Jira.
- name: Search for reporter
id: search_for_reporter
uses: fjogeleit/http-request-action@v1
with:
url: "${{ secrets.JIRA_BASE_URL }}/rest/api/3/user/search?query=${{ fromJson(inputs.port_context).triggered_by }}"
method: GET
username: ${{ secrets.JIRA_USER_EMAIL }}
password: ${{ secrets.JIRA_API_TOKEN }}
customHeaders: '{"Content-Type": "application/json"}'
- name: Install jq
if: steps.search_for_reporter.outcome == 'success'
run: sudo apt-get install jq
- name: Retrieve user from search
id: user_list_from_search
if: steps.search_for_reporter.outcome == 'success'
run: |
selected_user_id=$(echo '${{ steps.search_for_reporter.outputs.response }}' | jq -r 'if length > 0 then .[0].accountId else "empty" end')
selected_user_name=$(echo '${{ steps.search_for_reporter.outputs.response }}' | jq -r 'if length > 0 then .[0].displayName else "empty" end')
echo "selected_user_id=${selected_user_id}" >> "$GITHUB_OUTPUT"
echo "selected_user_name=${selected_user_name}" >> "$GITHUB_OUTPUT"
- name: Report that the user exists
if: steps.user_list_from_search.outputs.selected_user_id != 'empty'
uses: port-labs/port-github-action@v1
with:
clientId: ${{ secrets.PORT_CLIENT_ID }}
clientSecret: ${{ secrets.PORT_CLIENT_SECRET }}
operation: PATCH_RUN
runId: ${{ fromJson(inputs.port_context).run_id }}
logMessage: "The Jira reporter is ${{ steps.user_list_from_search.outputs.selected_user_name }}."
- name: Report that the user does not exist
if: steps.user_list_from_search.outputs.selected_user_id == 'empty'
uses: port-labs/port-github-action@v1
with:
clientId: ${{ secrets.PORT_CLIENT_ID }}
clientSecret: ${{ secrets.PORT_CLIENT_SECRET }}
operation: PATCH_RUN
runId: ${{ fromJson(inputs.port_context).run_id }}
logMessage: The user was not found. Jira will use the default reporter.
- name: Report issue creation
uses: port-labs/port-github-action@v1
with:
clientId: ${{ secrets.PORT_CLIENT_ID }}
clientSecret: ${{ secrets.PORT_CLIENT_SECRET }}
operation: PATCH_RUN
runId: ${{ fromJson(inputs.port_context).run_id }}
logMessage: Creating a Jira issue.
- name: Create Jira issue
id: create
uses: atlassian/gajira-create@v3
with:
project: ${{ inputs.project }}
issuetype: Bug
summary: ${{ inputs.short_title }}
description: ${{ inputs.description }}
fields: |-
${{ steps.user_list_from_search.outputs.selected_user_id != 'empty'
&& format('{{"reporter": {{"id": "{0}" }}}}', steps.user_list_from_search.outputs.selected_user_id)
|| '{}'
}}
- name: Report created Jira issue
uses: port-labs/port-github-action@v1
with:
clientId: ${{ secrets.PORT_CLIENT_ID }}
clientSecret: ${{ secrets.PORT_CLIENT_SECRET }}
operation: PATCH_RUN
link: ${{ secrets.JIRA_BASE_URL }}/browse/${{ steps.create.outputs.issue }}
runId: ${{ fromJson(inputs.port_context).run_id }}
logMessage: "Created Jira issue ${{ steps.create.outputs.issue }}."
Set up self-service action
Follow the steps below to create a self-service action that dispatches the GitHub workflow.
-
Go to the Self-service page of your portal.
-
Click on the + New Action button.
-
Click on the
{...} Edit JSONbutton. -
Copy and paste the following JSON configuration into the editor:
Report a bug from a New Relic alert (Click to expand)
Modification RequiredMake sure to replace
<GITHUB_ORG>and<GITHUB_REPO>with your GitHub organization and repository names respectively.{"identifier": "jiraIssue_report_a_bug_from_newrelic","title": "Report a bug from New Relic (GitHub actions)","icon": "Jira","description": "Report a bug in Port from a New Relic alert.","trigger": {"type": "self-service","operation": "DAY-2","userInputs": {"properties": {"project": {"title": "Project","description": "The Jira project where the bug will be created","icon": "Jira","type": "string","blueprint": "jiraProject","format": "entity"}},"required": ["project"],"order": ["project"]},"blueprintIdentifier": "newRelicAlert"},"invocationMethod": {"type": "INTEGRATION_ACTION","installationId": "<YOUR_GITHUB_OCEAN_INTEGRATION_ID>","integrationActionType": "dispatch_workflow","integrationActionExecutionProperties": {"org": "<GITHUB_ORG>","repo": "<GITHUB_REPO>","workflow": "report-a-bug.yml","workflowInputs": {"project": "{{ .inputs.project.identifier }}","description": "New Relic description: {{ .entity.properties.description }}\n\nNew Relic link: {{ .entity.properties.link }}\n\nReported by: {{ .trigger.by.user.email }}","short_title": "Bug | New Relic | {{ .entity.title }}","port_context": {"run_id": "{{ .run.id }}","triggered_by": "{{ .trigger.by.user.email }}"}},"reportWorkflowStatus": true}},"requiredApproval": false}Replace the variablesReplace
<GITHUB_ORG>,<GITHUB_REPO>, and<YOUR_GITHUB_OCEAN_INTEGRATION_ID>with your GitHub organization, repository name, and Ocean integration installation ID. -
Click Save to create the action.
Test the flow
-
Go to the Self-service page of your portal.
-
Run the Report a bug from New Relic (GitHub actions) action.
-
Select the New Relic alert and the Jira project where you want to create the bug.
-
Click Execute.
-
Confirm that the workflow completes and the new bug appears in the selected Jira project.
Create a PagerDuty incident
Use this path to create a PagerDuty incident with the New Relic alert's description, link, service relationship, and requesting user.
- Synced webhook
- GitHub workflow
The synced webhook calls PagerDuty's API directly from Port and uses the API token from your PagerDuty integration.
Use PagerDuty integration secret
If you have already installed Port's PagerDuty integration, these secrets should already exist in your portal.
To view your existing secrets:
- In your Port application, click on your profile picture
.
- Choose Credentials, then click on the
Secretstab.
The action below references the integration's built-in __PAGERDUTY_PAGERDUTY_TOKEN secret. You do not need to copy the PagerDuty token into another Port secret.
Set up self-service action
Follow the steps below to create a self-service action that calls the PagerDuty API.
-
Go to the Self-service page of your portal.
-
Click on the + New Action button.
-
Click on the
{...} Edit JSONbutton. -
Copy and paste the following JSON configuration into the editor:
Create a PagerDuty incident from a New Relic alert (Click to expand)
{"identifier": "create_pagerduty_incident_from_newrelic_alert","title": "Create PagerDuty incident from New Relic alert (Webhook)","icon": "pagerduty","description": "Create a PagerDuty incident from a New Relic alert and notify the on-call responder.","trigger": {"type": "self-service","operation": "DAY-2","userInputs": {"properties": {"service": {"type": "string","blueprint": "service","title": "Select a service","format": "entity","dataset": {"combinator": "and","rules": [{"property": "pagerdutyServiceId","operator": "isNotEmpty"}]},"default": {"jqQuery": ".entity.properties.port_service"}}},"required": ["service"],"order": ["service"]},"blueprintIdentifier": "newRelicAlert"},"invocationMethod": {"type": "WEBHOOK","url": "https://api.pagerduty.com/incidents","agent": false,"synchronized": true,"method": "POST","headers": {"RUN_ID": "{{ .run.id }}","Authorization": "Bearer {{ .secrets.__PAGERDUTY_PAGERDUTY_TOKEN }}","Accept": "application/vnd.pagerduty+json;version=2","Content-Type": "application/json","From": "{{ .trigger.by.user.email }}"},"body": {"incident": {"type": "incident","title": "{{ .entity.title }}","service": {"id": "{{ .inputs.service.properties.pagerdutyServiceId }}","type": "service_reference"},"urgency": "high","body": {"type": "incident_body","details": "{{ .entity.properties.description }}\nNew Relic link: {{ .entity.properties.link }}"}}}},"requiredApproval": false} -
Click Save to create the action.
The service input displays only services with a pagerdutyServiceId and defaults to the service related to the selected New Relic alert.
Test the flow
-
Go to the Self-service page of your portal.
-
Run the Create PagerDuty incident from New Relic alert (Webhook) action.
-
Select the New Relic alert and confirm the related service.
-
Click Execute.
-
Confirm that the new incident appears under the selected PagerDuty service.
The GitHub workflow keeps the PagerDuty automation in source control and reports the created incident to Port.
Add GitHub secrets
In your GitHub repository, open Settings > Secrets and variables > Actions and add:
PAGERDUTY_API_KEY- A PagerDuty REST API access key with permission to create incidents.PORT_CLIENT_ID- Your Port client ID.PORT_CLIENT_SECRET- Your Port client secret.
Add GitHub workflow
To create PagerDuty incidents from Port, add a workflow that passes the selected service and New Relic context to PagerDuty.
Create .github/workflows/create-pagerduty-incident.yaml in the .github/workflows folder of your repository.
We recommend creating a dedicated repository for the workflows that are used by Port actions.
Create a PagerDuty incident workflow (Click to expand)
name: Create PagerDuty incident
on:
workflow_dispatch:
inputs:
title:
description: The title of the incident to create
required: true
type: string
extra_details:
description: Extra details about the incident to create
required: false
type: string
urgency:
description: The urgency of the incident
required: false
type: string
from:
description: The email address of a PagerDuty user
required: true
type: string
service:
description: The PagerDuty service identifier
required: true
type: string
port_context:
description: The blueprint, run ID, and entity identifier from Port
required: true
type: string
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Create PagerDuty incident
uses: port-labs/pagerduty-incident-gha@v1
with:
portClientId: ${{ secrets.PORT_CLIENT_ID }}
portClientSecret: ${{ secrets.PORT_CLIENT_SECRET }}
token: ${{ secrets.PAGERDUTY_API_KEY }}
portRunId: ${{ fromJson(inputs.port_context).run_id }}
incidentTitle: "${{ inputs.title }}"
extraDetails: "${{ inputs.extra_details }}"
urgency: "${{ inputs.urgency }}"
actorEmail: "${{ inputs.from }}"
service: "${{ inputs.service }}"
blueprintIdentifier: pagerdutyIncident
Set up self-service action
Follow the steps below to create a self-service action that dispatches the GitHub workflow.
-
Go to the Self-service page of your portal.
-
Click on the + New Action button.
-
Click on the
{...} Edit JSONbutton. -
Copy and paste the following JSON configuration into the editor:
Create a PagerDuty incident from a New Relic alert (Click to expand)
Modification RequiredMake sure to replace
<GITHUB_ORG>and<GITHUB_REPO>with your GitHub organization and repository names respectively.{"identifier": "create_pagerduty_incident_from_newrelic_alert_github","title": "Create PagerDuty incident from New Relic alert (GitHub)","icon": "pagerduty","description": "Create a PagerDuty incident from a New Relic alert and notify the on-call responder.","trigger": {"type": "self-service","operation": "DAY-2","userInputs": {"properties": {"service": {"type": "string","blueprint": "service","title": "Select a service","format": "entity","dataset": {"combinator": "and","rules": [{"property": "pagerdutyServiceId","operator": "isNotEmpty"}]},"default": {"jqQuery": ".entity.properties.port_service"}}},"required": ["service"],"order": ["service"]},"blueprintIdentifier": "newRelicAlert"},"invocationMethod": {"type": "INTEGRATION_ACTION","installationId": "<YOUR_GITHUB_OCEAN_INTEGRATION_ID>","integrationActionType": "dispatch_workflow","integrationActionExecutionProperties": {"org": "<GITHUB_ORG>","repo": "<GITHUB_REPO>","workflow": "create-pagerduty-incident.yaml","workflowInputs": {"title": "{{ .entity.title }}","extra_details": "{{ .entity.properties.description }}\nNew Relic link: {{ .entity.properties.link }}","urgency": "high","from": "{{ .trigger.by.user.email }}","service": "{{ .inputs.service.properties.pagerdutyServiceId }}","port_context": {"blueprint": "{{ .action.blueprint }}","entity": "{{ .entity.identifier }}","run_id": "{{ .run.id }}","relations": "{{ .entity.relations }}"}},"reportWorkflowStatus": true}},"requiredApproval": false}Replace the variablesReplace
<GITHUB_ORG>,<GITHUB_REPO>, and<YOUR_GITHUB_OCEAN_INTEGRATION_ID>with your GitHub organization, repository name, and Ocean integration installation ID. -
Click Save to create the action.
The service input displays only services with a pagerdutyServiceId and defaults to the service related to the selected New Relic alert.
Test the flow
-
Go to the Self-service page of your portal.
-
Run the Create PagerDuty incident from New Relic alert (GitHub) action.
-
Select the New Relic alert and confirm the related service.
-
Click Execute.
-
Confirm that the workflow completes and the new incident appears under the selected PagerDuty service.