While developing a plugin type 2 for custom field Version Picker.
When I tried to add a new customfield that extends the VersionCFType
I get the follwing error: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.issue.fields.util.VersionHelperBean] is defined: Unsatisfied dependency of type [class com.atlassian.jira.issue.fields.util.VersionHelperBean]: expected at least 1 matching bean
Here are the few lines of the code.
faced the same issue and just created bean in code (both args of VersionHelperBean constructor are used for VersionCF counstructor anyway)
@Slf4j
@Named
public class Select2versionSingleCF extends VersionCFType {
@Inject
public Select2versionSingleCF(@ComponentImport PermissionManager permissionManager,
@ComponentImport JiraAuthenticationContext jiraAuthenticationContext,
@ComponentImport VersionManager versionManager,
@ComponentImport CustomFieldValuePersister customFieldValuePersister,
@ComponentImport GenericConfigManager genericConfigManager,
//@ComponentImport VersionHelperBean versionHelperBean,
@ComponentImport JiraBaseUrls jiraBaseUrls) {
super(permissionManager,
jiraAuthenticationContext,
versionManager,
customFieldValuePersister,
genericConfigManager,
//versionHelperBean,
new VersionHelperBean(versionManager, permissionManager),
jiraBaseUrls);
log.info("Select2versionSingleCF instance construction");
}
}
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.