Hi,
I am currently looking into writing code (java) to interact with a Jira server we've set up locally at our company to manage several projects (aim: peruse users, tasks, etc. and load them into a corporate backend)
As per the documentation, I gather there are two JIRA APIs that will let us do so, JIRA REST API (no problem here, lots of doc and examples), and the "Java API". And that's where I get confused a bit.
We're sensing we'd want to go that way (Java API) to avoid the REST overhead, however I have not been able to find any significant documentation/tutorial/resource as to how to use that Java API.
Sure, I've seen there's the JavaDoc for that, but surely we're not expected to rely solely on that to jumpstart a project.
And then the Java API Policy mentions the "jira-api" Maven Artifact.
But there again, I get stuck after that. Can't find any meaningful resource/help on the subject.
Is this the same as using the Atlassian SDK? (I've seen tutorials on that).
You get the drift: all help welcome here!
Cheers,
François
Community moderators have prevented the ability to post new answers.
Yes, it is developing plugins using Atlassian SDK. So, that is a good start. You can go through some of the JIRA plugin development tutorials to get the hang of it.
You will also find a couple of book on JIRA Development, including mine that is titled JIRA Development Cookbook.
Hi Jobin. We have a cloud instance of JIRA running here. I take it it's impossible to deploy a plugin developed with the Atlassian SDK to a cloud instance?
Atlassian's SDK Plugin Tutorial mentions:
"This hands on tutorial is designed to help you learn the basics of plugin development for Atlassian Server products. If you meant to write an app for an Atlassian Cloud product then please see the following guides instead."
The linked guides only give code examples using the REST API, so I presume it's impossible to deploy a Java-API plugin to a cloud instance of an Atlassian product?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is right. Only a selected few java add-on are available on Cloud and they come pre-packaged. As of now, you need to use the Connect framework to develop add-ons for Cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can get jira-api here: https://maven.atlassian.com/content/groups/public/com/atlassian/jira/jira-api/
Or add this to your POM:
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-api</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, thanks, but what about the end-user documentation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Vasiliy, your link works perfectly but the documentation refers to https://maven.atlassian.com/content/repositories/atlassian-public in most documents.
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.