Pretty simple really, I just created a SQL script component that overwrites the comments of the most recent version of an incident. The SQL is as follows:
update workitem set comment = (replace(@comment, @delimeter, CHAR(13))) where id = (select max(id) from workitem where number = @incident)
The component ends up looking like this:
So then, all you have to do is loop through your array/collection of text, and use a merge text component to tack on each element to a variable. Simply append whatever character you want to use as a line feed delimeter to the end of each element (or wherever you want to put them). Once you have built your new string with delimeters, you will need (very important!) to use either the create new incident, or edit ticket components BEFORE you use this new component - because as I said, it overwrites the most current version of the ticket. Obviously in the case of a new ticket, it has to exist before you can update it, and you typically don't want to overwrite the current version unless you know what is in it. I just use the edit or create components and don't bother setting anything in the comments. When the 'format comments' component runs, it will insert line feeds in place of the delimeter you choose. I should have time to make a proper post of this soon, but that's essentially all you need.