Email notification subject templates trouble shooting.

I have two email subject templates issuecreated.vm and issueresolved.vm that is exactly the same. However, issuecreated.vm works but not issueresolved as expected.

[raymond@smfc-aij-07-sr1 subject]$ ls -al issuecreated.vm issueresolved.vm
-rw-r--r-- 1 atlassian atlassian 186 Jul 12 00:27 issuecreated.vm
-rw-r--r-- 1 atlassian atlassian 186 Jul 12 00:27 issueresolved.vm
[raymond@smfc-aij-07-sr1 subject]$ diff issuecreated.vm issueresolved.vm
[raymond@smfc-aij-07-sr1 subject]$ cat issuecreated.vm
#if ($issue.getCustomFieldValue("customfield_10044"))
        ($issue.key) $issue.getCustomFieldValue("customfield_10044"): $issue.summary
        ($issue.key) $issue.summary
[raymond@smfc-aij-07-sr1 subject]$ cat issueresovled.vm
cat: issueresovled.vm: No such file or directory
[raymond@smfc-aij-07-sr1 subject]$ cat issueresolved.vm
#if ($issue.getCustomFieldValue("customfield_10044"))
        ($issue.key) $issue.getCustomFieldValue("customfield_10044"): $issue.summary
        ($issue.key) $issue.summary
[raymond@smfc-aij-07-sr1 subject]$

Here is the subject line output of a test issue, the "SEV3" is the customfield_10044
issue created:

[JIRA] (IM-66) SEV3: Test ticket: WALLHAX!!! (testing email templates)

issue resolved:

[JIRA] (IM-66) Test ticket: WALLHAX!!! (testing email templates)

As you can see during issue resolved event, the "SEV3" custom field were missing.
However, the templates of those two events are exactly the same (yes, the customfield_10044 do exists when we resolve this issue).
Everything works fine in my test instance but not production system.
I don't see any errors in log, how can I trouble shoot it?

1 answer

1 accepted

Problem resovled! It is in my workflow transition post mortem functions, the last function was set to "Fire generic event" instead of "Fire Issue Resolved event"(See screen shot). Thus, "Issue Resolved" event was never fired, hence email subject template issueresolved.vm wasn't involved.

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 ...

2,945 views 12 18
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