Create new JIRA velocity template for action "rejected"

Hi *,

we want to have an extra email (html) velocity template for one workflow action. Similar to the template issueupdated.vm (see codeblock) it should contain the same infos but the email header should contain rejected instead of updated. We are unfortunately not (now) very good in this.

#disable_html_escaping()

#defaultMailHeader("jira.email.title.issue.updated", $changelogauthor)

#rowWrapperNormal("#parse('templates/email/html/includes/patterns/issue-title.vm')")

#if ($comment)

    #parse('templates/email/html/includes/patterns/comment-top.vm')

#end

#if ($changelog)

    #rowWrapperNormal("#parse('templates/email/html/includes/fields/changelog.vm')" '' 'wrapper-special-margin')

#end

#parse('templates/email/html/includes/changelog-issue-description.vm')

#set ($commentActionBody="#parse('templates/email/html/includes/patterns/comment-action.vm')")

#rowWrapperNormal($commentActionBody)

#parse("templates/email/html/includes/footer.vm")

We made a copy of issueupdated.com (issuerejected.vm),  created the needed file in ../subject, modified "email-template-id-mappings.xml" and the main functionality is given.

What do we have to change?

#defaultMailHeader("jira.email.title.issue.updated", $changelogauthor)

We changed it to:

#defaultMailHeader("jira.email.title.issue.rejected", $changelogauthor)

... what can not work.  

In the email header "jira.email.title.issue.rejected" is shown instead of the wanted infos.

 

Thank you in advance.

 

Cheers

Carlo

 

 

 

1 answer

I have the same question . any suggesstions?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Teagan Harbridge
Published yesterday in Agile

Top 10 Insights from the 12th Annual State of Agile Report

...challenges organisation’s experience in their efforts to adopt and scale agile.   Many people associate agility with complete flexibility. And that’s not necessarily true, as demonstrated by this finding....

38 views 0 2
Read article

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