Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JIRA SOAP API documentation? [closed]

I'm building some custom tools to work against a JIRA install, and the exposed SOAP API is great, except that none of the arguments are named.

For example, the prototype for getIssue is:

RemoteIssue getIssue (string in0, string in1);

All of the SOAP RPC methods follow this convention, so without documentation I'm pretty hardpressed to figure out what to pass on a lot of these.

Does anyone know of a definitive API documentation guide?

like image 833
FlySwat Avatar asked Nov 10 '08 19:11

FlySwat


2 Answers

Found the javadoc:

http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/index.html?com/atlassian/jira/rpc/soap/JiraSoapService.html

like image 129
FlySwat Avatar answered Oct 03 '22 19:10

FlySwat


I've found that it's pretty simple to intuit what the parameters are supposed to be. Depending on how complicated you're going, you might be able to guess what you're supposed to pass.

There's one super important one though (this is Python with SOAPpy):

self.proxy = WSDL.Proxy( jiraUrl )
self.token = self.proxy.login(self.username, self.password)
...
issues = self.proxy.getIssuesFromFilter(self.token, args[0])

After getting the token from the login() method, you need to pass it in as a parameter to all of the other SOAP calls. After figuring that out, it's been pretty straightforward to figure out what the parameters should be (for example, getIssuesFromFilter should take the filterId as its other parameter)

like image 23
Tony Arkles Avatar answered Oct 03 '22 20:10

Tony Arkles