Quantcast
Viewing all articles
Browse latest Browse all 11560

"im editissue" is not working using Java APIs.

Hi, I am updating an Item  using java program but getting "null" response.

 

Please help me with below code.

 

Command cmd = new Command();

cmd.setApp(Command.IM);

cmd.setCommandName("editissue");

cmd.addOption(new Option("field", "\"" + value + "\""));

cmd.addSelection(issueId);

CmdRunner cr = getPTCDataSource();

Response response = cr.execute(cmd);

Result result = response.getResult();

 

It throws "CommandException" saying  CommandException(null).

 

Generated query from the code: im editissue --field="Discussion=API Testing" -- 1234

 

Please assist.

 

Thanks,

Gajanan.


Viewing all articles
Browse latest Browse all 11560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>