Jira Spoke Comment field not coming over as rich text

Mike Stockman1
Giga Guru

Hi,

We are working on a Jira issue integration using IntegrationHub and Jira Spoke v2.6.8 and cannot get the comment field to come into ServiceNow with correct format. On the OOTB action, its assuming the field is a string field and doesnt allow for rich text.

We also are having problems getting a comment in ServiceNow to copy correctly into Jira's comment field using the action provided. We modified the action, setting the comment field to HTML since Jira's comment field is actually HTML on their system so we can send rich text. Here are some pictures of what we're seeing:

1. Here's our action and a pic of what we're sending

find_real_file.png

2. Here's what is received on Jira:

find_real_file.png

3. Here's what it should be capable of passing back and forth:

find_real_file.png

1 REPLY 1

rlatorre
Kilo Sage

Try to script the outbound value from ServiceNow to strip away "[code]" and HTML tags.

var comment = fd_data.trigger.current.comments.replace(/\[code\]|\[\/code\]/g, '').replace(/<[^>]*>/g, '');

return comments;