Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
I'm using the Java API_4_16.
I'd like to add the sortDirection as option:
...
command.addOption(new Option("sortField","Planned End Date"));
command.addOption(new Option("sortDirection","Ascending"));
...
when executing the command it throws this exception:
com.mks.api.response.InvalidCommandOptionException: im: MKS124819: Invalid option: "sortDirection"
So how to specifiy the sort direction 🤔
Regards,
Simon
Hi @sziel ,
If i am not wrong you are running "im issues" command and you want to get result in specific order based on a field. sortDirection is not a option in im issues command.
Please refer the help page to check which all options are available in specific command. https://<ServerName>:<ServerPort>/integrity122_hc/en/index.html#page/IntegrityHelp%2Fim_issues.html
You should use like this:-
For Ascending:-
command.addOption(new Option("sortField","Planned End Date"));
command.addOption(new Option("sortAscending"));
For Descending:-
command.addOption(new Option("sortField","Planned End Date"));
command.addOption(new Option("nosortAscending"));
Does this help?
Vielen Dank / Many Thanks,
Kapil Jain
Thanks Kapil, that makes sense 😅
I'll check that later.
Hi @sziel
If that works please mark this as accepted solution.
Vielen Dank / Many Thanks,
Kapil Jain