Hi,
I do not want to use the general "Issue Updated" from Jira since it causes my Jira installation to be verbose towards being spammy. Instead I rely on using "Issue Commented" and that works most of the time.
Jira has the annoying happit of sending an "Issue Updated" instead of "Issue Commented" whenever a customer sends an email with any kind of attachment. This means that all the customers who attach an image as part of their signature will cause Jira to send an "Issue Updated" instead of the Commented. The result is that I cannot get my AutoTransitionListener to reopen cases, jump out of the status "Waiting for customer" etc.
My idea was to use the Groovy Script Runner to issue the "Issue Commented" whenever an update included both an attachment and a comment, but I am all new to the script runner.
Unfortunately I cannot find the syntax for verifying that "There was a comment" as part of the update.
As far as I can see in various documentation, this would verify that there is an attachment in the update : "attachmentManager.getAttachments(issue).size() >= 1" or perhaps this could be used "issueFunction in hasAttachments ()".
But I cannot find an example of how to verify if this particular update had a comment in it?
Any assistance would be highly appreaciated.
Best regards
- Niels
This is a great question. Does anyone have an answer to this?
Might try
List attachments = attachmentManager.getAttachments(issue)
if (!attachments.isEmpty()) {.........}
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.