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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Comment via mail is added to wrong project

We use JEMH as our mail handler and have created a project with with a catchall address example@example.com, which runs in the operation mode Create and Comment.

When a person mails to example@example.com without a key in their subject, the default mapped project (GOOD) creates a new ticket, GOOD-1

When a person mails to example@example.com with a key in their subject (BAD-1), this is added as a comment to the BAD project. 

There's only one rule, and this states that everything is mapped against the GOOD project. How can we configure JEMH, to only allow commenting in the GOOD project, and not the BAD project?

2 answers

1 accepted

1 vote
Answer accepted

@Frederik De Roover  JEMH has you covered :) You can control what projects can be commented on via the subject!

If you are using JEMH Server/DC:

  • Go to your JEMH profile and edit the Email section
  • Find the setting "Subject IssueKey (comment) Regexps"
  • This is the regular expression (https://en.wikipedia.org/wiki/Regular_expression) used to detect issue keys in the subject. Modify the expression to match only the issue keys for projects you want to be commentable via the subject issue key

If you are using JEMH Cloud:

  • Go to your profile and edit the relevant project mapping
  • Under Pre-processing > Issue Association you will find the setting "Subject Issue Key Regex"
  • Like above, modify to match only issue keys from projects that should be commentable in this way

Thank you! Using regex everything works as planned!

Like Mike likes this

Glad I could help. For more information on ways to associate emails to issues in JEMH feel free to take a look at this wiki page: https://thepluginpeople.atlassian.net/l/c/3U1QkKC6

 

Regards,

Mike @ The Plugin People

Dear @Frederik De Roover ,

-edit- removed my answer. Another answer was more accurate.

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you