cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How to Edit Issue using Java API

Bhaskar
1-Visitor

How to Edit Issue using Java API

I'm new to this PTC Integrity tool and in a learning phase. I'm trying to Edit Issue using - Java API but unable to Edit.

While executing the "editissue" command i'm getting errors.

Code example:

Command cmd = new Command(Command.IM, "editissue");

cmd.addOption(new Option("issue id", "616849"));

cmd.addOption(new Option("field", "Document Title=XXXXXXX"));

Errors:

1. This command requires operands: issue id (or)

2. Invalid option: "issue id"

How to supply the Operand "issue id" to the above IM command "editissue".

Would appreciate any suggestions.

Thanks

Bhaskar

ACCEPTED SOLUTION

Accepted Solutions

When it says operand, it really means add a "selection".

I would try using cmd.addSelection("616849"); instead of cmd.addOption(new Option("issue id", "616849"));

This should resolve the missing operand as well as the invalid option.

Matt

View solution in original post

1 REPLY 1

When it says operand, it really means add a "selection".

I would try using cmd.addSelection("616849"); instead of cmd.addOption(new Option("issue id", "616849"));

This should resolve the missing operand as well as the invalid option.

Matt

Announcements


Top Tags