The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I combine mail handlers?

David
Contributor
February 8, 2019

Hi there,

 

I want to set up an email question/answering process.

  • An email should create a new issue
  • A reply made to an email should update the Jira issue which was mentioned in the subject with a comment 

 

I manage to get it working in pieces, but not the way I want it to work: 

If I use the mail handler "Create a new issue or add a comment to an existing issue", an email gets created if no issue is mentioned in the subject. However the comment which is added to existing issue contains the whole email (the new text and the "old" one which was in the email before, since I hit reply and deleted nothing).

 

So I tried the handler "Add a comment before a specified marker or separator in the email body" to just get the part the user replied. I set up the Split Regex, and it works fine. Only the text the user added is listed as a comment and the "old" text of the mail is not added as a comment. But if want to send a new email (no Jira issue in the subject) to the mailbox, I get the error: "Could not find a corresponding issue to comment and 'Create a new issue from each email' is not selected."

 

Is there a way to have the best of both worlds? Creating a new issue if no issue is mentioned and only adding the "new text" as a comment if the user replies to the email?

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Tim Graffam
Contributor
June 3, 2020

@David 

I stumbled upon this question from searching on this very issue. Any chance you figured out a way to accomplish this?

Thanks!