All of the Atlassian Tutorials are OUT OF DATE. The current tutorials here (https://developer.atlassian.com/docs/getting-started/learn-the-development-platform-by-example) have either deprecated methods, incorrect component-import elements or the steps in the tutorial are wrong. I have checked Bitbucket for the latest code and it dates back to 2014. Atlassian, PLEASE POINT US NEWBIES TO A DIRECTION THAT CAN HELP!
Using 6.2.6 SDK - Intellij for the IDEA - JIRA version 6.4
I have gotten as far as the Control access with SAL and found out that the component-import statements are no longer relevant. I am now using the @ComponentImport within the MyPluginServlet.java file based on Unsatisfied dependency of type UserManager, LoginUriProvider, TemplateRenderer. After building and starting the localhost, my adminUI plugin is disabled and when I go to http://localhost:2990/jira/plugins/servlet/test I get a 404 like this Error 404.
Being new to this, I can't find many places where I can get help.
Thank you in advance!
ERROR LOGS:
ERROR [plugin.osgi.factory.OsgiPluginInstalledHelper] Cannot determine required plugins, cannot resolve bundle 'com.atlassian.plugins.tutorial.refapp.adminUI'
ERROR [plugin.osgi.factory.OsgiPlugin] Detected an error (BundleException) enabling the plugin 'com.atlassian.plugins.tutorial.refapp.adminUI' : Unresolved constraint in bundle com.atlassian.plugins.tutorial.refapp.adminUI [170]: Unable to resolve 170.0: missing requirement [170.0] package; (package=com.atlassian.plugin.spring.scanner.annotation.imports). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see https://developer.atlassian.com/x/mQAN
Community moderators have prevented the ability to post new answers.
Hi all!
I fixed all tutorials. Here is my answer including modified code and comments.
You can still use component-import statements perfectly fine. These are two alternative approaches for defining the dependencies of your plugin - either by using component-import and the ComponentAccessor class or via dependency injection and the Atlassian spring scanner (which you have apparently used). They affect how the OSGi manifest is being built and how your code is transformed into a JIRA plugin. The latter of the two options is very well documented here. Most probably you are missing the spring scanner dependency - read the documentation and make sure you read the docs for the proper major version (1.x or 2.). If you are not familiar with OSGi or Spring it will probably be easier to start with component-import.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , I also facing same problem . We are using Atlas sdk version 7.1.8 .
I try to implement new plugin as mentioned in below url but its based on JIRA 6.0
Some how I'm able to compile code and run it but after login JIRA plugin is grayed and I'm able to make it enabled.
Here is my modified code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
All tutorials are out of date. So sad...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.