Documentation for JIRA 4.0. Documentation for other versions of JIRA is available too.

More code examples can be found in the SVN repository. You may also try looking for them in the forums.