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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.