It's all about the answers!

Ask a question

RTC Server side plugin : Getting illegal argument exception while creating work item

Akash Kape (132) | asked Dec 05 '16, 7:51 a.m.


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("", 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

permanent link
Ralph Schoon (61.8k33643) | answered Dec 05 '16, 8:13 a.m.
Please read How should I ask a question in the Forum if I want to receive useful answers?.
See for some examples how to create work items. 

You have to debug this on your own. see and especially the Extensions Workshop how to do that.

Akash Kape selected this answer as the correct answer

One other answer

permanent link
Peterson dos Santos (2024) | answered Sep 09 '19, 11:25 a.m.

What about the question ?

Can you help us?


Your answer

Register or to post your answer.