I've been using the Jira REST Java Client for fetching data from Jira Server using the REST API from code within a custom Bitbucket plugin (for a merge check hook).
Using the Java Client brings in a lot of dependencies, though, and I've spent a lot of time trying to satisfy all of the OSGi wiring constraints without success.
I am starting to think it might be faster to just write my own "thin client" without any dependencies other than what comes with Bitbucket already so that I don't have to bring in anything extra. We do this in another plugin so I have an example to work from, but I need a lot more data from Jira than the other plugin, so I thought it might make things faster to use the Java client.
Besides a) the Java client and all the dependencies or b) hand-rolled implementation, are there any other options for fetching data from a Jira Server instance using the REST API from within a Bitbucket plugin? Perhaps a version of the library with the dependencies included so OSGi won't complain about all the missing requirements?
From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.
Start Learning