Forums

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

The html in the message is added to the issue description

PF February 13, 2023
    • The html tag in the message is added to the issue description, and the format remains the same

2 answers

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2023

What is the problem here?  Why is standard behaviour an issue for you?

PF February 14, 2023

I converted the entire html page of the email using convertXHtmlToWikiMarkup and set it to the comments without keeping the same format

PF February 14, 2023

Missing a lot of wiki tags

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2023

Hmm.  So what exactly are you trying to do here?  What is the overall objective and what are you coding to achieve it?

PF February 14, 2023

I want to convert the html of the email body into wiki markup to add to the comment, keeping the style and formatting

PF February 14, 2023

By listening to the mail, we can get the message, and by message.getContent().tostring (), we can get the html information of the whole mail. How to convert the html into rich text information of comments

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2023

So what are you coding to do this?

PF February 14, 2023

I wrote a mail processing program to process mail messages after receiving mail messages

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2023

What type of program?  Where does it run?  At what point in the cycle does it kick in?

PF February 14, 2023

I wrote a custom JSM plug-in in java,

PF February 14, 2023

Run in jira service Management

PF February 14, 2023

Added an access mail server. When the mail server receives mail, my mail processor receives the mail message and processes the mail

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 17, 2023

Sorry, what do you mean by "access mail server" - what is that in Jira?

PF February 19, 2023

Receiving mail server

PF February 19, 2023

The goal is to convert the HTML of the entire message into Wiki markup and add it to the issue comment, retaining the style of the message body

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2023

Ok, so your code is going to need to read the HTML, parse it for formatting and convert that into markup, and tell Jira that the field is markup.

convertXHtmlToWikiMarkup can do the basics, but you will have to parse and interpret the bits it cannot.

PF February 20, 2023

Yes, the standard convertXHtmlToWikiMarkup conversion does not meet, what do I do

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2023

You will need to code for all the stuff that the converter can not do with your content.

0 votes
Fazila Ashraf
Community Champion
February 13, 2023

Hi @PF 

JIRA description renders the text in wikimarkup and not html.

See https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all for wikimarkup formats

PF February 13, 2023

Hi  @Fazila Ashraf  

convertXHtmlToWikiMarkup  Unsatisfactory conversion

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events