commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cappoli, William" <wcapp...@firstam.com>
Subject Trying to write data on separate lines of email sent by jelly script
Date Mon, 10 Nov 2008 19:18:56 GMT
I'm working on a Jelly script that will be used within an instance of
the JIRA tracking system. The script executes a filter to determine what
items are past due. All of the items that are found are than commented
that it is being escalated. The script that triggers an email to be sent
that contains a brief message and a list of the past due items.
Everything works except all of the items are written on the same line.
However, I would prefer that each item be on its own line for
readibility purposes. I have tried everything I can think of and nothing
works. Below is the code I have and was hoping someone might be able to
help out infiguring this one out:

<JiraJelly
xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib"
xmlns:core="jelly:core" xmlns:email="jelly:email" xmlns:log="jelly:log">

<jira:Login username="admin" password="rocit">

<log:warn>Running Inactivate issues service</log:warn>
    <!-- Properties for the script -->
    <core:set var="comment">Issue not resolved by due date has been
escalated.
        
Thank you,
    
  Admin</core:set>

    <!-- Run the SearchRequestFilter -->
    <jira:RunSearchRequest filterid="10040" var="issues" />

    <core:forEach var="issue" items="${issues}">

	<!-- <jira:AddComment issue-key="${issue.key}"
comment="${comment}"/> -->
 
    </core:forEach>

<core:set var="emailMsg">The following issues flagged as critical
severity are now past due:

<core:forEach var="issue" items="${issues}">
Issue: ${issue.key}

</core:forEach>

Thank you,
Admin
</core:set>


<email:email to="AutomationTeam@test.com" from="AutomationTeam@test.com"
subject="Past Due Critical Items" server="smtp.firstam.com"
message="${emailMsg}" />

</jira:Login>
</JiraJelly>

Thanks

Bill Cappoli 



------------------------------------------------------------------------------
***** The contents of this email may be confidential *****

This e-mail message and any attached files are intended solely for the use of the individual(s)
addressed and may 
contain confidential, proprietary or privileged information.

If you received this message in error or are not the intended recipient, please destroy this
e-mail message and 
any attachments or copies. You may not retain, distribute or use any information in this e-mail
or any of its 
attachments. Please inform us of the erroneous delivery by return e-mail. Thank you for your
cooperation.

==============================================================================

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message