Setter methods of RemoteIssue is not committed

View: New views
1 Messages — Rating Filter:   Alert me  

Setter methods of RemoteIssue is not committed

by forums-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

private JiraSoapServiceServiceLocator fJiraSoapServiceGetter=new JiraSoapServiceServiceLocator();
        private static JiraSoapService fJiraSoapService=null;
        private static String fToken=null;

        // fToken is assigned in this method.

        public SoapCli(String server, String user, String pass) throws Exception {
                try {
                        String serverURL="http://"+server;
                        String endPoint="/rpc/soap/jirasoapservice-v2";
                        logger.trace ("Server name : " + server);
                        if (fJiraSoapService == null){
                                fJiraSoapServiceGetter.setJirasoapserviceV2EndpointAddress(serverURL+endPoint);
                                fJiraSoapServiceGetter.setMaintainSession(true);
                                fJiraSoapService = fJiraSoapServiceGetter.getJirasoapserviceV2();
                                fToken = fJiraSoapService.login(user, pass);
                        }
                } catch (Exception e) {
                        e.printStackTrace();
                        throw e;
                }
        }

        // Getting the RemoteIssue using this method

        public static RemoteIssue getIssue (String key) throws RemotePermissionException, RemoteAuthenticationException, RemoteException, java.rmi.RemoteException {
                return fJiraSoapService.getIssue(fToken, key);
        }

        // Set description
        public static RemoteIssue updateIssue (String key, String fieldName, String[] values) throws RemoteException, java.rmi.RemoteException {
                // Look at setter methods of the RemoteIssue and add them here.
                if (fieldName.equalsIgnoreCase("Description")) {
                        RemoteIssue ri = getIssue(key);
                        ri.setDescription(values[0]);
                        System.out.println("Description of the " + key + " is set to " + ri.getDescription());
                        logger.debug("Description of the " + key + " is set to " + ri.getDescription());
                        return ri;
                }
        }

After executing updateIssue with fieldName as "Description" I could able get the new description using ri.getDescription(). But when I look at the same issue throu Jira Web, I see that the new description is not stored. Why setDescription is not committing the new value to the Jira Database.
--
Post by svgkraju - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=38590
_______________________________________________
Jira-user mailing list
Jira-user@...
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-user