Passing muktiple checkbox value to sub-task

Hi.
Sorry for mi english, hope you understand me.
I have to transfer a value from a custom field (multiselect checkbox) to a sub-task.
Here is my code.

OptionsManager optionsManager = (OptionsManager)ComponentManager.getComponentInstanceOfType(OptionsManager.class);
valueOptionCheck = optionsManager.findByOptionId(new Long(13628));
cfCustomFieldCheck = cfCustomFieldManager.getCustomFieldObject(13619);
newIssue.setCustomFieldValue(cfCustomFieldCheck , valueOptionCheck);

But, when i set the values, throws a null in the log that i have
null error throws in the line newIssue.setCustomFieldValue(cfCustomFieldCheck , valueOptionCheck);
Hope you can help
thanks

(the checkbox has only two values, yes or no)

1 answer

0 votes
Gary Sackett Atlassian Team May 06, 2013

Hi Jorge,

With the OnDemand platform, we don't support java code in custom fields or comment fields. Are you using the standalone/btf version of JIRA possibly? If so, you would need to perform this using a third party plugin or at the filesystem level. If you are using OnDemand, we do not support third party plugins or access to the file system, so there is no known workaround for this. If you are using the standalone version of JIRA, you may want to try this plugin:

https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner

Cheers,

Gary

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,798 views 18 22
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