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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,598
Community Members
 
Community Events
184
Community Groups

This question is about groovy script

Barry Manion
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 • edited

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