<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to update problem comment in Dynatrace from Pagerduty in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/275989#M2133</link>
    <description>&lt;P&gt;Adding to Chad's comment above, the specific documentation for posting a comment via API can be found &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/problems-v2/comments/post-comment" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2025 18:55:20 GMT</pubDate>
    <dc:creator>marco_irmer</dc:creator>
    <dc:date>2025-04-25T18:55:20Z</dc:date>
    <item>
      <title>How to update problem comment in Dynatrace from Pagerduty</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/270177#M2051</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Community,&lt;/P&gt;
&lt;P&gt;Done an integration with PagerDuty and we need a update comment section in an open problem for which an alert/incident got created in PagerDuty. Our requirement is to update the comment in Dynatrace problem record once someone acknowledge or update the status in PagerDuty.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 09:58:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/270177#M2051</guid>
      <dc:creator>roy339</dc:creator>
      <dc:date>2025-02-17T09:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to update problem comment in Dynatrace from Pagerduty</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/275982#M2132</link>
      <description>&lt;P&gt;Does pager duty have the ability to call out to the Dynatrace API? If so, you can script the system to take the problem card ID, Post in the desired comment via the Dynatrace API with a valid token to post the data into the problem card.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 16:33:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/275982#M2132</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2025-04-25T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to update problem comment in Dynatrace from Pagerduty</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/275989#M2133</link>
      <description>&lt;P&gt;Adding to Chad's comment above, the specific documentation for posting a comment via API can be found &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/problems-v2/comments/post-comment" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 18:55:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/275989#M2133</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-04-25T18:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to update problem comment in Dynatrace from Pagerduty</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/277515#M2157</link>
      <description>&lt;P&gt;Within Workflows, you can always use a &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/default-workflow-actions/run-javascript-workflow-action" target="_self"&gt;Run JavaScript action&lt;/A&gt; with the &lt;A href="https://developer.dynatrace.com/develop/sdks/client-classic-environment-v2/#createcomment" target="_self"&gt;Classic Environment V2 SDK's createComment&lt;/A&gt; method.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { execution } from '@dynatrace-sdk/automation-utils';
import { problemsClient } from '@dynatrace-sdk/client-classic-environment-v2';

export default async function ({ executionId }) {
  // get the current execution
  const ex = await execution(executionId);

  // get event data
  const eventData = await ex.event();

  // comment on problem
  return await problemsClient.createComment({
    problemId: eventData['event.id'],
    body: { message: 'Looking into it...' }
  });
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 May 2025 15:07:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-update-problem-comment-in-Dynatrace-from-Pagerduty/m-p/277515#M2157</guid>
      <dc:creator>christian_kreuz</dc:creator>
      <dc:date>2025-05-19T15:07:56Z</dc:date>
    </item>
  </channel>
</rss>

