Hi All,
I want to find which options of one custom field are not used by issues , and i get one function is like "issue Object
getCustomFieldValue(CustomField customField)
", Do we have any other way to fetch the unused options besides to search in all issues ?
This could be faster than looping through the issues and calling getCustomFieldValue if you don't have so many options but a large number of issues
Please check the link which custom field types implement it
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.
Hi Dieter, I'm wondering how to create a MultipleSettableCustomFieldType Object to call the mothod "getIssueIdsWithValue", when i use
MultipleSettableCustomFieldType mc = (MultipleSettableCustomFieldType)ComponentManager.getComponentInstanceOfType(MultipleSettableCustomFieldType.class); for(Option op : opt) { if (mc.getIssueIdsWithValue(cf,op).isEmpty()) unusedOpt.add(op); }
"mc.getIssueIdsWithValue(cf,op).isEmpty() " will cause a java.lang.NullPointerException. Thanks .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've found the solution like this :
CustomField cf = getCustomField();
CustomFieldType cft = cf.getCustomFieldType();
final MultipleSettableCustomFieldType mc = (MultipleSettableCustomFieldType) cft;
anyway .thanks very much .
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.