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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

JSD Email Reply Channel - Modified subject that still contains issue key generates new ticket Edited

We have customers that sometimes modify the ticket subject upon reply, or have mail servers that modify the subject when it reaches them. This triggers their replies to us to generate new tickets. Is there any way to set JSD to trigger comments (instead of new tickets) when a ticket subject is anywhere in the email subject.
Here's an example of what we're running into.

// original subject
CUSTSVC-3334 Symptom ABC experienced by user XYZ
// subject when they reply
RE: [Non-DoD Source] CUSTSVC-3334 Symptom ABC experienced by user XYZ

In this example, the subject starting with "RE: [Non-DoD Source]", instead of "RE: CUSTSVC-3334" triggered a new ticket to be created.

Is there any way to have JIRA Service Desk scrape the entire subject for an issue key, instead of relying on starting with "RE: <proj>-<num>"?

2 answers

1 accepted

1 vote
Answer accepted

Hello Patrick! When an email is received by JIRA (either Software or SD handler), the rules are as follows:

The subject  of an email message is examined for an existing issue key:

  • If an issue key is found in the subject, the content of the email message's body is processed and added as a comment to the issue with that issue key.
  • If an issue key is NOT found in the subject, the in-reply-to header  is examined:
    • If the email message is found to be a reply to another email message from which an issue was previously created, the body is processed and added as a comment to that issue.
    • If the email message is NOT found to be a reply, a new issue is created.

Any notification sent by JIRA originally includes the In-reply-to header, something similar to:

In-Reply-To: <JIRA.10500.1512631987000@Atlassian.JIRA>

and even if the subject is changed completely when sent back to JIRA, the rules mentioned will apply, and will not find the Issue key in the subject but will find the In-reply-to header and JIRA will know where to append the message.


So all you need to ensure is that the header is not removed from the email sent by JIRA by the customer's email servers, and JIRA will know what to do with the email when it comes back.

Thanks for all the details.  The original problem I noticed was that condition 1 was not triggering comments, but rather new tickets, so I was under the impression that the location of the issue key mattered, as that was the pattern observed at the time.

The problem actually stopped occurring the next day (confirmed in the Email Channel processing UI).  I wish I knew why it failed to begin with on the original emails, but the actual email log files have wrapped.  If it repeats, I'll open up a JIRA ticket with log results.

  • If an issue key is found in the subject, the content of the email message's body is processed and added as a comment to the issue with that issue key.

Interesting. If you have any problems with the behavior of your JIRA instance we'll be happy to help at Atlassian Support.

0 votes

We are facing a similar issue, I see requests created via email from another JSD instance not mapping to ours. I can clearly see the ticket number in the request created by our instance, but it's failing to connect the dots.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

241 views 1 6
Read article

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