Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I find example code for the Jira ServiceDesk Java API?

dwschulze
Contributor
August 12, 2019

Jira ServiceDesk has a Java API, which is mostly interfaces and very different from the Jira Java API:

https://docs.atlassian.com/jira-servicedesk/4.3.0/

 

Are there any examples of how to use this API? 

 

Here is some sample code for the Jira Java API:

https://www.baeldung.com/jira-rest-api

 

I'm looking for something similar for the Jira Service Desk Java API.

 

Thanks

 

 

 

 

2 answers

3 votes
dwschulze
Contributor
August 13, 2019

Your first link is to documentation for Service Desk REST endpoints for use with tools like cUrl or Postman.  Service Desk also has a Java API:

https://docs.atlassian.com/jira-servicedesk/4.3.0/

 

I'm looking for documentation for how to use that API to write a standalone program to create Service Desk requests.

 

Jira also has a Java API and I found some example code that lets me write a standalone program to create Jira tickets:

 

https://www.baeldung.com/jira-rest-api

 

I'm looking for something like that for the service desk API.

 

Your second link is for how to create a Service Desk plugin, which is not what I'm doing.

BarryS
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2019

Why does this not have an answer!?! 

 

Sorry, not super helpful. But perhaps it's good to know that you're not the only one looking for help on this

Enver_Haase October 11, 2019

Me too.

This is hard to believe. I do wonder if it's necessary now to make the project a SpringBoot project, as from the bare Java API I have no idea how to actually create instances of the OrganizationService, as an example.

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2019

Hello,

I believe that by saying Jira Java Api you mean Jira Rest API. If so, you can find examples on Jira Service Desk Rest Api here:

https://docs.atlassian.com/jira-servicedesk/REST/3.6.2/

Examples about Jira SD Java Api you can find here:

https://developer.atlassian.com/server/jira/platform/creating-automation-rule-components/

Enver_Haase October 11, 2019

The OP actually was pretty precise in saying he was interested in the JAVA(!) API, and he pointed to the API-Docs of that API.

Now, you are pointing to

git clone https://bitbucket.org/atlassian/service-desk-automation-tutorial.git

in order to understand the ServiceDesk Java API.

But this is all to create some JIRA server plugin, right?

 

Are you saying the ServiceDesk API is by no means intended to serve as a client API to create or query ServiceDesk Organizations and such?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events