Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link
What?

What about the question ?

Can you help us?

Regards,

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Dec 05 '16, 7:51 a.m.

Question was seen: 1,614 times

Last updated: Sep 09 '19, 11:25 a.m.

Confirmation Cancel Confirm