Jimex Jira RPC extension

Name Jimex RPC Extension
Version 0.2
Product Versions 3.2+
Author(s) Andrey Polyakov
Homepage http://www.rozdoum.com/
Sources jimex-rpc.zip
Binary jimex-jira-rpc-plugin-3.4.2-1.jar

Description/Features

Extends Jira RPC services with new functionality:

  1. new possibility for work logging via SOAP
  2. and SubTasks creation

Install

Simply put jimex-jira-rpc-plugin-3.4.2-1.jar to plugin dir and restart JIRA () or build it from sources:

  1. Unzip zip file with sources
  2. and run maven jar

Examples

New provided methods you can find in JimexXmlRpcService interface:

public interface JimexXmlRpcService extends com.atlassian.jira.rpc.xmlrpc.XmlRpcService {
    Hashtable createSubTask(String token, Hashtable rIssueStruct) throws Exception;   
    boolean addWorklog(String token, String issueKey, Hashtable remoteWorklogStruct) throws Exception;
}

and simple examples you can find in TestRpcHelper:

public class TestRpcHelper extends TestCase {  
        ...   
    public void testAddWorklog() throws Exception {
        String issueKey = jira.createIssueWithDefaultParams("XML RPC issue " + new Date(), "old desc");
        Hashtable remoteWorklog = new Hashtable();
        remoteWorklog.put("body", "New comment " + new Date());
        remoteWorklog.put("timeLogged", "1000");
        remoteWorklog.put("newEstimate", "1200");
        remoteWorklog.put("username", "andrew");
        jira.addWorklog(issueKey, remoteWorklog);
    }
    public void testSubTaskIssue() throws Exception {
        String createdIssueKey = jira.createIssueWithDefaultParams("XML RPC issue " + new Date(), "old desc");
        String issueKey =
           jira.createChildIssue(createdIssueKey,
                                 "XML RPC issue " + new Date(), "old desc", RpcHelper.USER_NAME, "360", false);
        assertIssue(issueKey);
    }
}
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.