Deploy a XML-RPC service within JIRA
In the previous recipe, we have seen how to deploy a SOAP service within JIRA. In this one, we will see how to deploy a XML-RPC service.
Getting ready
Create a skeleton plugin using Atlassian Plugin SDK. Here again, we are developing a v1 plugin. So, make sure the atlassian-plugin.xml
doesn't have the Version 2 attribute in it.
And yes, make sure Accept Remote API Calls option is turned ON, as in the previous recipe.
How to do it...
As in the case of SOAP plugin, let us expose a new method, getProjectCategories
, that retrieves all the project categories in the project. The following are the steps:
Add the RPC plugin dependency in the
pom.xml
to get hold of the existing RPC classes. Change the version accordingly:<dependency> <groupId>atlassian-jira-rpc-plugin</groupId> <artifactId>atlassian-jira-rpc-plugin</artifactId> <version>3.13-1</version> <scope>provided</scope> </dependency>
Declare the...