Skip to main content
Question

Send TOPdesk Inline images to Jira issue

  • July 1, 2026
  • 4 replies
  • 32 views

Ludo van der Marel
Forum|alt.badge.img+1

Hi,

I build a good working integration between TOPdesk SaaS call-module and Atlassian Jira issues.

This integration is able to send attachment from TD calls to a linked Jira issue, and TD actionlogs to the comment memofield in the linked Jira issue. The challenge is to send inline images within a TD actionlog (which are not anymore saved in TD as attachments as was done before) to the comment memofield  in the linked Jira issue. Does anyone have a suggestion or got this working in any existing integration ?

I expect to need the new endpoint /tas/api/incidents/id/{id}/images (which still is a bit buggy) but to prevent myself for a too narrow, solution-focused mindset, I’d probably best repeat my need in other words:

I need a solution to send action log entries with inline images via API messaging to the logbook of a linked JIRA item at one of our partners. Currently, we are only able to send plaintext to that partner, which is pulled from the relevant TD call via, among others, endpoint /tas/api/incidents/id/{id}/progresstrail.

Thanx in advance for any input !

Ludo

4 replies

Jerica Hunter
Forum|alt.badge.img
  • New Member ⭐⭐⭐
  • July 2, 2026

Hallo Ludo,

ik heb dit voor een ServiceNow koppeling, eerst actie bijwerken via de koppeling, als dat is gelukt, dan controleer of er images in de verstuurde actie staan.

  1. Haal de meest recente actie op (met inline images)
  2. Als memotext is not invisible for caller en bevat <img src=> dan nieuwe tekst variable ‘visibleImages’: haal image.name op uit de memotext (kan meer dan 1 zijn) 
  3. herhalende stap met de voorwaarde: <#if _variables.visibleImages?has_content>true</#if>
    a. Nieuwe tekst variable imageName 
    b. getImage 
    c. upload image als attachment

In de bijlage een deel van de actiereeks. Kun je hiermee verder?


Joost Oostindie
Forum|alt.badge.img+9

Hi Ludo,

To retrieve images, you can use a GET request to /tas/api/incidents/id/${unid}/images
We’ve added a custom condition here so that images are only retrieved from visible updates that also contain an image:

<#if _progresstrail.actions_visible?has_content>
<#assign action = _progresstrail.actions_visible?first.richtext?lower_case>
 ${action?contains(‘<img’) || action?contains(‘data:image/’)}
<#else>
 false
</#if>

Since you’re retrieving multiple images, this response is then processed through a loop:

  • Number of iterations: ${((_responses[“getImages”]!{})[“body”]![])?size}
  • Step 1 - Download Images: GET /tas/api/incidents/id/${unid}/images/${((_responses[“getImages”]!{})[“body”]![])[i].filename}
  • Step 2: Create a list-type variable with the following content: 
    {
    “filename”: “${((_responses[”getImages“]!{})[”body“]![])[i].filename}”,
    ‘attachment’: “${_base64(_responses[”downloadImage“].rawBody)!}”
    },

You can include this variable in the link sent to your supplier.

Don’t forget that images can still be added as attachments, so you could set up a similar configuration for attachments to include them as well!


Ludo van der Marel
Forum|alt.badge.img+1

Hallo Ludo,

ik heb dit voor een ServiceNow koppeling, eerst actie bijwerken via de koppeling, als dat is gelukt, dan controleer of er images in de verstuurde actie staan.

  1. Haal de meest recente actie op (met inline images)
  2. Als memotext is not invisible for caller en bevat <img src=> dan nieuwe tekst variable ‘visibleImages’: haal image.name op uit de memotext (kan meer dan 1 zijn) 
  3. herhalende stap met de voorwaarde: <#if _variables.visibleImages?has_content>true</#if>
    a. Nieuwe tekst variable imageName 
    b. getImage 
    c. upload image als attachment

In de bijlage een deel van de actiereeks. Kun je hiermee verder?

Thnx Jerica! I’ll investigate your input for usage in my specific case !


Ludo van der Marel
Forum|alt.badge.img+1

Hi Ludo,

To retrieve images, you can use a GET request to /tas/api/incidents/id/${unid}/images
We’ve added a custom condition here so that images are only retrieved from visible updates that also contain an image:

<#if _progresstrail.actions_visible?has_content>
<#assign action = _progresstrail.actions_visible?first.richtext?lower_case>
 ${action?contains(‘<img’) || action?contains(‘data:image/’)}
<#else>
 false
</#if>

Since you’re retrieving multiple images, this response is then processed through a loop:

  • Number of iterations: ${((_responses[“getImages”]!{})[“body”]![])?size}
  • Step 1 - Download Images: GET /tas/api/incidents/id/${unid}/images/${((_responses[“getImages”]!{})[“body”]![])[i].filename}
  • Step 2: Create a list-type variable with the following content: 
    {
    “filename”: “${((_responses[”getImages“]!{})[”body“]![])[i].filename}”,
    ‘attachment’: “${_base64(_responses[”downloadImage“].rawBody)!}”
    },

You can include this variable in the link sent to your supplier.

Don’t forget that images can still be added as attachments, so you could set up a similar configuration for attachments to include them as well!

Thnx Joost! I’ll investigate your input for usage in my specific case !