RTC Server side plugin : Getting illegal argument exception while creating work item
Hi,
I am trying to generate a new work item by using server side RTC api but I am getting the exception,
illegal argument exception
Below is my code snippet,
IWorkItemTemplateService iWorkItemTemplateService = getService(IWorkItemTemplateService.class);
IProjectAreaHandle projectAreaHandle = operation.getProcessArea().getProjectArea();
String[] strAtrray = new String[]{"AA","BB"};
int[] intArray = iWorkItemTemplateService .instantiateTemplate("com.ibm.team.workitem.template2", strAtrray, projectAreaHandle);
Please correct me if I missed something.
A small piece of code would be helpful.I am trying to create a work item from existing template2
Accepted answer
Please read How should I ask a question in the Forum if I want to receive useful answers?.
See https://rsjazz.wordpress.com/2016/10/24/using-the-work-item-server-api-to-create-work-items/ for some examples how to create work items.
You have to debug this on your own. see https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and especially the Extensions Workshop how to do that.