Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-12828

Trouble when deploying a custom field in JIRA 7.0.4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Resolved Locally
    • Icon: Highest Highest
    • None
    • 7.0.4
    • Documentation
    • JIRA SDK (Latest Version) with Standalone JIRA SOFTWARE 7.0.4
      JDK 1.8
      Windows 10 PRO

      I have created a Support Request, and they haven't been able to help me, suggesting that I opened a dev support request:

      While trying to follow the custom field type tutorial: https://developer.atlassian.com/jiradev/jira-platform/guides/fields/tutorial-creating-a-custom-field-type

      I have found that there are some discrepancies between the process detailde in the tutorial and the actual process, one of them being the reference to a com.atlassian.jira.plugin.customfield.example package, whereas the sdk creates com.atlassian.jira.plugin.customfield.example.api and com.atlassian.jira.plugin.customfield.example.impl packages.

      Anyway, I'm sticking to the steps described in the tutorial, but when I cannot see my custom field type anywhere on my local JIRA instance.
      The command line window keeps throwing these errors:
      [INFO] [talledLocalContainer] com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.plugin.customfield.example.JiraCustomField': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister]: : No qualifying bean of type [com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

      which I can't seem to be able to fix adding

      <component-import key="customFieldValuePersister" interface="com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister"/>
      to my atlassian-plugin.xml, as descriibed here: https://developer.atlassian.com/docs/faq/troubleshooting/unsatisfieddependencyexception-error-creating-bean-with-name

      Is this a bug or just lack of updated documentation with the last SDK version? Any help or insight on what could be going wrong would be appreciated.

      Regards.

              Unassigned Unassigned
              2106fe0905cb Daniel Aguilar
              Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: