Hello,
I am trying to add a comment as a scrip with some html tags. For example:
$self->TicketObj->Comment(Content=> “Hello”, Type=>‘text/html’);
The “Type” parameter does not seem to do anything though. Is it not possible to add comments as HTML using a scrip?
Thanks.
Hi Armen,On Thu, Sep 24, 2015 at 2:00 PM, Armen Tashjian Armen.Tashjian@sce.com wrote:
Hello,
I am trying to add a comment as a scrip with some html tags. For example:
$self->TicketObj->Comment(Content=> “Hello”,
Type=>‘text/html’);
The “Type” parameter does not seem to do anything though. Is it not
possible to add comments as HTML using a scrip?
I notice you are using the word, “scrip”. Without a ‘t’ the word has a
different connotation in RT. With a ‘t’, like script, it means a perl
script - which your code fragment above suggests you are doing.
Which one are you talking about: scrip or script?
Cheers,
-m
Try this:
my $myContent = “Hello”;
Create a mime object to tell RT that the comment will be an HTML comment.
my $mimeObj = MIME::Entity->build(
Type => “text/html”,
Charset => ‘UTF-8’,
Data => $myContent
);
$self->TicketObj->Comment(MIMEObj => $mimeObj);
View this message in context: http://requesttracker.8502.n7.nabble.com/Adding-HTML-comment-with-a-scrip-tp60705p61099.html