Search code examples
jirajira-rest-apijira-rest-java-api

JIRA - Java API or REST API


i am actually analyzing JIRA for my company regarding the functionalities and the different APIs. At the Atlassian Homepage i found two official provided APIs (JAVA API or JIRA REST API).

My further intentions are to program an interface between my stand-alone application and JIRA. The idea is for instance to control the user-management (add, delete, modify user, etc.), project-management (create project, delete, etc.) and other things from this application. Therefore i need a way to interact with JIRA. Normally i would avoid the REST API and prefer the JAVA API, because other interfaces are even managed by the JAVA API, but i can't find any examples for connecting, adding or modifying workItems in JIRA. I have just found the java api documentation.

https://developer.atlassian.com/jiradev/jira-apis/java-api-policy-for-jira

Would you suggest only the JAVA REST API or are there any good examples for the JAVA API?

Thanks a lot!


Solution

  • It really depends on what you are trying to achieve. The Java API is mostly used to build Jira plugins, while the REST API is used when you want to integrate external applications.

    In your case the normal choice would be the REST API.