Hi,
i use:
$customFieldManager.getCustomFieldObjectByName("Activity Type").getValue($issue)
but the shown value is in brackets: [value] how did i get the value without the brackets ?
Thanks Fredy
Hey Fred,
You need to access the option and display the options value.
Hi Bhushan, I'm sure, that you are right, but I don't know how ,-(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
haha sorry try this. Havent tested it but should give you an idea.
CustomField field = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Activity Type");
if(field.getCustomFieldType() instanceof MultiSelectCFType){ Option option = (Option)field.getValue(issue); String value = (String)option.getValue(); }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, an in the velocity template :
$customFieldManager.getCustomFieldObjectByName("Activity Type").getValue($issue).getValue()
?? I'll try this as sonn I've time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.