Hi,
I have added a postfunction "ScriptRunner workflow function - Send a custom email".
When i preview the result on a specific issue it's work.
After some test when i go to the postfunction i see that "No failures in the last 4 execution(s)".
But the notification never arrived.
I have put into the condition and configuration field :
issue.issueType.name == 'Invoice'
I have put into the email template field :
Dear ${issue.assignee?.displayName},
The ${issue.issueType.name} <a href = "${baseurl}/browse/${issue.getKey()}">${issue.key}</a> has been assigned to you.
</br>Description: $issue.description
<% if (mostRecentComment)
out << "Last comment: " << mostRecentComment
%>
</br>Regards,
</br>${issue.reporter?.displayName}
I have put into the subject template field :
Issue $issue requires your approval
I have put inzo the To issue fields field :
Assignee
Does any one can help me ?
Regards
Stéphane
Hi Stéphane,
Are you using Jira Sever or Jira Cloud? I have tested a post-function on server according to your specifications and it works for me.
Could you go to the workflow step that you've added the post-function on and ensure that the post-function is the last item to be executed on the workflow step? If the post-function is not the last item, could you move it down?
I use Jira server and in fact I'm sorry it works fine.
It's just that our new testing machine has not been connected with an SMTP server.
I am really sorry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stéphane,
No worries :)
I am glad you found your problem.
Thanks for using ScriptRunner!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear ${issue.assignee?.displayName},
The ${issue.issueType.name}<ahref = "${baseurl}/browse/${issue.getKey()}">${issue.key}</a> has been assigned to you.
</br>Description: $issue.description
<%if (mostRecentComment)
out << "Lastcomment: " << mostRecentComment
%>
</br>Regards,
</br>${issue.reporter?.displayName}
How could I send the most recent public comment?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.