Welcome to the Jazz Community Forum
REST for instantiating WI template

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.
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

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.
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.