I am new into using Velocity but this is what I am attempting to do.
Based on a issue type "service request" and custom field option 'a' set description to display 'x'
Based on a issue type "service request" and custom field option 'b' set description to display 'y'
Based on a issue type "service request" and custom field option 'c' set description to display 'z'
I have used the following for this
if (($issue.key == '') & ($issue.type().getname == 'service request') & ($customfieldmanager().getcustomfieldoption = '11504') & ($id == 'a'))
set ($description = 'x')
elseif ($id == 'b')
set ($description = 'y')
else ($id == 'c')
set ($description = 'z')
Seems not to recognise the the custom field id or the custom field selection id.
Anyone recommend what could be going wrong here, I have had no luck and have tried a few different ways and have spent a few days attempting to work this out.
Help would be appreciated.