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.

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


permanent link
Ralph Schoon (61.8k33643) | answered Dec 05 '16, 8:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

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?

What about the question ?

Can you help us?

Regards,

Your answer


Register or to post your answer.