Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

This question is about groovy script

Barry Manion May 23, 2023

I am trying to create a basic groovy script that will parse the subject and body of incoming email to create issues to start. I have been trying to use an existing example script I found as the basis but for some reason it is not going to the inbox of the account used by the JIRA server it is going to:

"Found 0 messages in the directory: /var/atlassian/application-data/jira/import/mail"

and finding NO mail. Testing incoming mail service with the basic JIRA mail handler functions works perfectly, creates a ticket from the subject line but the scripted mail handler is failing....I don't get why...

1 answer

1 accepted

0 votes
Answer accepted
Graham Twine
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2023

Hello @Barry Manion

 

The Mail Handler you created is a 'Local Files' handler are you expecting it to  be a SMTP  handler?

 

If you are expecting it to be a Local File sHandler, can you confirm that there are any files in /var/atlassian/application-data/jira/import/mail

 

Adaptavast have some scripts in their library that may help

https://library.adaptavist.com/entity/set-new-issue-assignee-to-first-cc-user-with-mail-handler

https://library.adaptavist.com/entity/create-a-new-issue-using-a-mail-handler-script-and-set-the-epic-link-to-an-existing-issue-found-in-the-mail-body

https://library.adaptavist.com/entity/set-new-issue-priority-to-match-the-email-priority-level-with-mail-handler

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.4.5
TAGS
AUG Leaders

Atlassian Community Events