IBM QRadar

IBM QRadar

Join this online topic group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#Security
#QRadar
#SecuringhybridcloudandAI
 View Only

Send notes from a task to email (problem with images)

  • 1.  Send notes from a task to email (problem with images)

    Posted 02/14/23 08:02 AM

    Hello, 
    I'm trying to get all notes from inside the tasks of a specific incident and send them by email, and I'm having trouble with images.

    I got all the task ID's with GET /orgs/{org_id}/incidents/{incident_id}/tasks
    Then for each task I got the notes with /orgs/{org_id}/tasks/{task_id}/comments


    The output I'm getting is html, with the images appearing referenced by their path, something like
    <div class="rte"><div>r</div><div><br /></div><div><img src="/rest/images/task/1efe9a32-fb88-4033-b1a7-99629ccf3182" alt="1efe9a32-fb88-4033-b1a7-99629ccf3182" /></div></div>"

    My problem is that when I send it in an outbound email, the images don't appear since they are referenced on the server, and the email doesn't have that info. The mail sender doesn't know where "/rest/images/task/1efe9a32-fb88-4033-b1a7-99629ccf3182" is.
    Any idea how can I get those images and send them by mail?



    ------------------------------
    Diego Mastrolorenzo
    ------------------------------