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
------------------------------