need help in velocity templates in jirs

radhakrishana's Avatar

radhakrishana

25 Jul, 2014 06:20 AM

HI Team,

Currently we are using jira 6.0.5

we need to display the custom field value in the subject of the email whenever the respective field is updated

the field is a version picker

currently we are using the text mode for email notification.i have edited the issueupdated.vm.i have tried the below template

# if the custom field value is empty print the issuekey.issuetype,and summary else print issuekey,updated custom field value and issue summary

if($issue.getCustomFieldValue("customfield_1001") = "")

($issue.key) ($issue.issueTypeObject.name) $issue.summary

#else
($issue.key) $issue.getCustomFieldValue("customfield_1001") ($issue.issueTypeObject.name) $issue.summary
#end

im not getting the value when the custom field is updated.

please help me with valid template

  1. Support Staff 1 Posted by Tim on 25 Jul, 2014 01:28 PM

    Tim's Avatar

    Hi,

    It looks like you've filed this with the wrong vendor. This is a forum for Cascade Server (a web content management system). For JIRA support, check out their portal here.

    Thanks

  2. Tim closed this discussion on 25 Jul, 2014 01:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac