Hi there,
This issue in being discussed in depth with our team, we currently have a part hacky solution until a more comprehensive approach is supplied:
We've tried to do this using an in-product Script:
```url_to_attachment = """https://192.168.62.3/rest/orgs/201/incidents/{0}/attachments/{1}/contents""".format(incident.id, attachment.id)
note_text = u"""<a class="data-attachment-url" href="#" data-attachment-url="https://192.168.62.3/rest/orgs/201/incidents/{0}/attachments/{1}/contents">
{2}</a>""".format(incident.name, attachment.id, attachment.name)
incident.addNote(helper.createRichText(note_text))```
But our `IncidentNoteREST` API seems to filter the `data-attachment-url` HTML tag so the hyperlink just ends up being:
```<a href="#"> Screen Shot 2019-04-17 at 9.09.15 AM.png</a>```
Whereas in order for it to work, we need the link to be:
```<a class="data-attachment-url" href="#" data-attachment-url="https://192.168.62.3/rest/orgs/201/incidents/2096/attachments/4/contents">
Screen Shot 2019-04-17 at 9.09.15 AM.png
</a>```
From this investigation the answer is we cannot do exactly what you want today. But the team is focused on allowing a SOC analyst to do this without introducing a potential vulnerabilities, it will be logged and added to our backlog to remedy.
Kind regards,
Sean O'Gorman
------------------------------
Sean OGorman
------------------------------
Original Message:
Sent: Thu April 11, 2019 02:10 PM
From: PAUL FORMOSA
Subject: Attachments
Hi All,
Is there a way to reference an attachment in a 'Note' so that when you click on the note-reference the attachment will launch.
Use Case:
- Some investigations result in an incident having many-many attachments.
- Investigators are making 'Notes' in their incident and reference an attachment by name (e.g. see attachment abcxyz.eml).
- Others that are reviewing the incident need to then go to a long list of attachments to find the attachment name.
This feature may exist however it is not obvious to me how to use it.
------------------------------
Thanks
Paul Formosa
------------------------------