Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unnecessary strikethrough rendering inside Table when doing an API call

Soumik Mukherjee January 12, 2024

Hello community, 

In my organisation, we have a software "JFrog Xray" that does automated deep scanning for artifacts, etc for vulnerabilities and security compliances. It generates a report accordingly, and then creates an automated ticket on Jira in the form of table with all the related details.

So, for example this is the kind of report we generate:

image-20231218-152750.png

And the automated ticket looks like this:

image-20231218-152704.png

Now, the issue can simply be seen above in the second screenshot inside the table, under the evidence column. The entire certificate ID is striked through. Although I understand that this is a result of the Atlassian markdown syntax that understands texts inside hyphen as strikethrough.

But we are not expecting this behaviour and hence want to escape this behaviour anyhow.

I have personally tried all the escape characters/patterns/tags known to me, but none of them works as it is inside a table and all the texts inside the markdown table syntax gets rendered as is and therefore, no help by using any kind of escape characters.

I have attached below some of the escape patterns I have tried along with its simple rendering on Jira (I would be pasting the body of the JSON request and the screenshots correspondingly):

  • Preformatted Text:
{

"fields" : {

"description" : "||Month||Assignee||Backup||\n|January|Dave|Steve|\n|`----February----`|Gregg|Karen|\n|March|Diane|Jorge|"

}

}

Screenshot 2024-01-12 at 3.02.21 PM.png

  • HTML Tags (<code> and <div> tried both):
{

"fields" : {

"description" : "||Month||Assignee||Backup||\n|January|Dave|Steve|\n|<code>----February----</code>|Gregg|Karen|\n|March|Diane|Jorge|"

}

}

Screenshot 2024-01-12 at 3.04.52 PM.png

  • HTML Entities
{

"fields" : {

"description" : "||Month||Assignee||Backup||\n|January|Dave|Steve|\n|&lt;----February----&gt;|Gregg|Karen|\n|March|Diane|Jorge|"

}

}

Screenshot 2024-01-12 at 3.07.28 PM.png

  • Zero-width space character
{

"fields" : {

"description" : "||Month||Assignee||Backup||\n|January|Dave|Steve|\n|&#8203;-&#8203;-&#8203;-&#8203;-&#8203;February&#8203;-&#8203;-&#8203;-&#8203;-&#8203;|Gregg|Karen|\n|March|Diane|Jorge|"

}

}

Screenshot 2024-01-12 at 3.09.59 PM.png

So, is there a way we can escape this and achieve what I am looking for?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events