Manipulating Work Item Workflow States using java server API
Hi Team I am following Manipulating Work Item Workflow States link to change work item state using java server API.
I have added below plugin into plugin dependencies
com.ibm.team.process.service, com.ibm.team.workitem.common, com.ibm.team. workitem.service, com.ibm.team.process.common, com.ibm.team.repository.common, com.ibm.team.repository.service
but at this line
additionalParams.add(IExtensionsDefinitions.UPDATE_PARENT_STATE_EXTENSION_ID);
I am getting error as IExtensionsDefinitions cannot be resolved to a variable.
Could anyone please tell me what am I missing, do I need to add more plugins into plugin dependencies tab.
How can I solve this error?
My RTC version is 5.0.2
|
Accepted answer
Ralph Schoon (63.4k●3●36●46)
| answered May 17 '16, 2:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
IExtensionsDefinitions.UPDATE_PARENT_STATE_EXTENSION_ID is just a String like
public static final String IExtensionsDefinitions.UPDATE_PARENT_STATE_EXTENSION_ID="my.company.extension.id";
vikrant kamble selected this answer as the correct answer
Comments Hi Ralph,
"my.company.extension.id" by this should I pass Id of my extension that I am developing
Or this could be null
Hi Raplh,
It worked for me, I passed id of my extension. Also if we are passing null, we get null pointer exception.
You can take any string. You don't have to pass the additional parameter and you can use other save methods. If you pass additional parameter, you want to make sure the string is unique. |
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.