How to set new value to "Filed Against" attribute.
![]()
I need to check the existing value of "Filed Against" value and then set it to new value.
Appriciate any suggessions or Piece of code. Thanks in Advance Radhika Bandari |
3 answers
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Nov 07 '11, 7:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please consider to search the development WiKi, especially the SDK. Here is some example code https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation
I think there is no example for modifying a work item. You could look that up in the SDK itself. This code has worked for me:
The filed against is
|
![]()
Hi,
Thanks for your reply. My code looks like this. I tried getting existin category value. import com.ibm.team.repository.client.IItemManager; import com.ibm.team.repository.client.ITeamRepository; IItemManager itm = teamRepository.itemManager(); //get existing category value. ICategory category = (ICategory) itm.fetchCompleteItem(parentWorkItem.getCategory(), IItemManager.DEFAULT, monitor); System.out.println("This is category: " + category.getName()); when I use above import statements, the plugin itself is not deployed on the server. It is giving this message State CopyAttributeValuesToChildWI (Operation Advisor) completed successfully. what could be the probelm. And I neednot change complete category list to new list of values, but I need to change the selected value against Filed Against field before saving workitem. Please suggest me on this issue. Regards, Radhika |
![]()
Hi Ralph,
To work with ITeamRepository, IWorkItemClient I have imported respective packages import com.ibm.team.workitem.client.IWorkItemClient; import com.ibm.team.repository.client.ITeamRepository; and added corresponding pulg-ins in Dependencies tab plug-in.xml. If I add these plug-ins in Dependencies tab, the advisor plug-in is not deployed into server. These two packages are related to client. I have checked windows->preferences->plug-in development->Target platform's Target Definition It has all the plug-ins listed there. What is the procedure I need to follow. Thanks in Advance, Radhika Bandari |
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.