It's all about the answers!

Ask a question

Formatting issues in Email Notification


Ankit Kothari (1361616) | asked Jul 05 '11, 7:56 p.m.
Hi,

I want to display FULLNORMALLOG in the email template. Without HTML tags, the data looks fine and it is readable.

But, when I insert the FULLNORMAL log inside HTML document, the formatting becomes very bad and it is not at all readable. I have some data which needs to be in HTML format. And, so I am using HTML.

I tried putting FULLNORMALLOG outside HTML, but still the same problem.
I want to display FULLNORMALLOG the way it gets displayed in job or step fail message.

Thanks
Ankit

3 answers



permanent link
Brent Ulbricht (2.5k11) | answered Jul 06 '11, 8:58 p.m.
JAZZ DEVELOPER
Hi,

I want to display FULLNORMALLOG in the email template. Without HTML tags, the data looks fine and it is readable.

But, when I insert the FULLNORMAL log inside HTML document, the formatting becomes very bad and it is not at all readable. I have some data which needs to be in HTML format. And, so I am using HTML.

I tried putting FULLNORMALLOG outside HTML, but still the same problem.
I want to display FULLNORMALLOG the way it gets displayed in job or step fail message.

Thanks
Ankit


Hi Ankit,

I'm trying to understand your scenario a bit more. You've created an email template for your project or project/step and you're using the ${FULLNORMALLOG} variable within the body? If you're able to copy/paste the body of the template with HTML tags, that might give us a better idea of your scenario.

Brent Ulbricht
RTC Build Lead

permanent link
Ankit Kothari (1361616) | answered Jul 06 '11, 10:56 p.m.
Hi,

I want to display FULLNORMALLOG in the email template. Without HTML tags, the data looks fine and it is readable.

But, when I insert the FULLNORMAL log inside HTML document, the formatting becomes very bad and it is not at all readable. I have some data which needs to be in HTML format. And, so I am using HTML.

I tried putting FULLNORMALLOG outside HTML, but still the same problem.
I want to display FULLNORMALLOG the way it gets displayed in job or step fail message.

Thanks
Ankit


Hi Ankit,

I'm trying to understand your scenario a bit more. You've created an email template for your project or project/step and you're using the ${FULLNORMALLOG} variable within the body? If you're able to copy/paste the body of the template with HTML tags, that might give us a better idea of your scenario.

Brent Ulbricht
RTC Build Lead

Hi,

I have created an email template for the project fail and it is a HTML template and it contains other information like the status of all components I am trying to build and deploy with the list of changes made since the last run of the build in the source code. HTML allows me to put all the data in table format which makes it easier to understand.

In case the project fails, I want to put the reasons for a step to fail. I could not find any other variables apart from FULLNORMALLOG, but this contains the entire log of the project. I am more interested in Step Log and I do not have log filters to take advantage of that.

Having said that I am fine with FULLNORMALLOG unless otherwise there is better way. So, if I put FULLNORMALLOG inside a HTML, the does not display as it does when it is used in normal plain text email template.

For example:

Template 1 (Plain Text):
$FULLNORMALLOG

Template 2 (HTML):
<HTML>
<head>
<title>Build and Deploy Summary</title>
</head>
<body>
<div>Some project specific Info</div>
<div><label>Error: </label><label>$FULLNORMALLOG</label></div>
</body>
</HTML>

If I put $FULLNORMALLOG outside HTML, then it is not displayed as desired.

Thanks
Ankit

permanent link
Ankit Kothari (1361616) | answered Jul 08 '11, 1:08 a.m.
Hi,

I want to display FULLNORMALLOG in the email template. Without HTML tags, the data looks fine and it is readable.

But, when I insert the FULLNORMAL log inside HTML document, the formatting becomes very bad and it is not at all readable. I have some data which needs to be in HTML format. And, so I am using HTML.

I tried putting FULLNORMALLOG outside HTML, but still the same problem.
I want to display FULLNORMALLOG the way it gets displayed in job or step fail message.

Thanks
Ankit


Hi Ankit,

I'm trying to understand your scenario a bit more. You've created an email template for your project or project/step and you're using the ${FULLNORMALLOG} variable within the body? If you're able to copy/paste the body of the template with HTML tags, that might give us a better idea of your scenario.

Brent Ulbricht
RTC Build Lead

Hi,

I have created an email template for the project fail and it is a HTML template and it contains other information like the status of all components I am trying to build and deploy with the list of changes made since the last run of the build in the source code. HTML allows me to put all the data in table format which makes it easier to understand.

In case the project fails, I want to put the reasons for a step to fail. I could not find any other variables apart from FULLNORMALLOG, but this contains the entire log of the project. I am more interested in Step Log and I do not have log filters to take advantage of that.

Having said that I am fine with FULLNORMALLOG unless otherwise there is better way. So, if I put FULLNORMALLOG inside a HTML, the does not display as it does when it is used in normal plain text email template.

For example:

Template 1 (Plain Text):
$FULLNORMALLOG

Template 2 (HTML):
<HTML>
<head>
<title>Build and Deploy Summary</title>
</head>
<body>
<div>Some project specific Info</div>
<div><label>Error: </label><label>$FULLNORMALLOG</label></div>
</body>
</HTML>

If I put $FULLNORMALLOG outside HTML, then it is not displayed as desired.

Thanks
Ankit

Hi,

I figured this out.. The newline and empty spaces were ignored in HTML template, but when I used HTML textarea, it worked as desired... Textarea keep the source formatting intact and hence I was able to view the logs in readable format.

I still have one question regarding step log. Is it possible to display only the log of the steps which failed. Though I am not using any log filters as of now..

Thanks
Ankit

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.