It's all about the answers!

Ask a question

REST for instantiating WI template


Jorge Diaz (8664134) | asked Mar 09 '11, 8:21 a.m.
JAZZ DEVELOPER
Hello,

I am trying to execute the creation of a WI template using REST service. The rationale of the aproach is to add an option in a RTC dashboard to allow the user the creation of WIs of a template in a click.

I was trying to use the following REST call:

https://<server>/<app>/service/com.ibm.team.workitem.common.internal.rest.IQueryRestService/instantiateWorkItemTemplate

With following parameters:

projectAreaItemId AAA
templateId BBB

But it returns a syntax error. Am I missing any important parameters?

Thanks in advance.

Regards,

Jorge.

4 answers



permanent link
Jorge Diaz (8664134) | answered Mar 17 '11, 8:29 p.m.
JAZZ DEVELOPER
OK, to anyone that might help ...

something was wrong in my script to insert the parameters in the request, but making a complete url call works:

https://<server>/<app>/service/com.ibm.team.workitem.common.internal.rest.IQueryRestService/instantiateWorkItemTemplate?projectAreaItemId=AAA&templateId=BBB

I guess being an "internal" REST is not supported and can dissapear in a future release, right? Is there a preferred way for performing this template execution programatically?

Regards,

Jorge.

permanent link
Jorge Diaz (8664134) | answered Jul 14 '11, 3:48 a.m.
JAZZ DEVELOPER
Bumping :)
Any preferred way of instantiating a WI Template via REST API not using internal service?

Thanks!

Regards,

Jorge.

permanent link
David Schneider (11) | answered Jul 05 '13, 5:13 p.m.
 Jorge, did you find out a way to do this? I'm trying to do the same...

permanent link
Jorge Diaz (8664134) | answered Aug 05 '13, 3:28 a.m.
JAZZ DEVELOPER
Hi David,

the url in my second post worked, but it is still an internal API.

Regards,

Jorge.

Your answer


Register or to post your answer.