• Community
  • Products
  • Jira
  • Questions
  • Is there a way to distinguish between comments that were created on an issue via email and comments that were manually entered into the issue?

Is there a way to distinguish between comments that were created on an issue via email and comments that were manually entered into the issue?

I want to send a notification to a non-jira user when an issue is commented via Email this issue. 

When the initial email comes in the non-JIRA user's email address is saved in a custom field.  When comments are created on the issue via email responses, I want to send a notification to the address in the custom field.  Is there a way to distinguish between comments that were created on an issue via email and comments that were manually entered into the issue?

1 answer

1 accepted

0 vote

No, a comment is a comment, there's no information stored about how the comment was made.

If you want to distinguish between them, you'll need to code for a flag on the comments, and add something in the "email this issue" plugin to set the flag.  If it's just about the notification and the information about how it was created is not really that important, then you'll only need to get the plugin amended to send when needed.

How would I code for a flag on the comments? I am trying to set up communication between our customer support person and a non-jira user using "email this issue". I want customer support to be able to communicate among themselves by adding comments manually into the ticket, and communicate to the non-jira user via email. Is there another way to do this other than trying to distinguish between how the comments was created? If I could control who the "auto-reply" to comment email goes to then I could use this and set it to the user in the custom field. But I don't see any way to do this.

You'd need to write a plugin to add the facility to tag comments (which, I don't think is an easy plugin to write), and you'll need to re-write the "email this issue" function as well. The significantly easier option would be to write a new email handler - one that essentially duplicates the current behaviour, but also has some code to send out the additional email.

Is there a way to tell the email handler who to send the auto-reply to? If I could just get it to auto-reply to the custom field (which has the customer saved in it) then I would be good. Right now it only auto-replies to the sender of the email.

If you're coding your own handler, then there should be, yes. I've not tried it myself, but I think it's possible.

We are using the Email this Issue handler and haven't made any code changes to it. We are just setting it up using the fields provided. Do we have access to the code?

I don't think you do - I assume you're using JETI? You'll need to raise an issue with them (although I have a nagging doubt that they do actually support this already)

ok, I will open a ticket with them.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,323 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot