Import servicedesk in pom.xml to access servicedesk apis.

thomasrosenstein March 24, 2019

Hello,


I would like to use the servicedesk apis in my plugin, but I'm unable to figure out what dependencies I need to add so that I can access the classes:

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

I'm also not sure about the version, I'd like to target Servicedesk 4.0.2 and Jira 8.0.2

Any pointers greatly appreciated!

2 answers

1 accepted

1 vote
Answer accepted
thomasrosenstein March 25, 2019
For version 4 it's necessary to import the following:

<dependency>
<groupId>com.atlassian.servicedesk</groupId>
<artifactId>jira-servicedesk-api</artifactId>
<version>4.0.2-REL-0002</version>
<scope>provided</scope>
</dependency>

I'm not clear on why it's REL-0002, but that's the one that works.


Be aware that the approvals API was merged into the servicedesk-api with v4, therefore the servicedesk-approvals-api is not available anymore!

Francisco Gomez Balastegui March 30, 2020

Hi, if i do that, then the plugin not start if service desk is not installed, we wanna to import only when Service Desk it is installed

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.
March 24, 2019
thomasrosenstein March 24, 2019

The approvals api is not included with the servicedesk-api, actually I was unable to figure out WHERE that api is available!

(if I add that record, then the import of the ApprovalService won't work)

i.e. https://docs.atlassian.com/jira-servicedesk/3.9.1/?_ga=2.75103253.607170755.1552404664-250007471.1516890476

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events