Creating work items with plain java
I'm using plain java and I've got as far as making work items in a jazz project, currently though I can't figure out how to set the owner of a work item.
I get that your meant to use workItem.setOwner(fOwner); where fOwner is of the type IContributorHandle. I think what I need to do is get a list of users from the server and select it from that but I've no idea how. Any help with this would be greatly appreciated. |
2 answers
Ralph Schoon (63.3k●3●36●46)
| answered Aug 24 '11, 9:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I'm using plain java and I've got as far as making work items in a jazz project, currently though I can't figure out how to set the owner of a work item. Laurence, the Extending Team Concert Forum discusses these things. You can resolve a handle using auditableClient.resolveAuditable(). You can get a contributor by ID and other means.
|
Laurence, the Extending Team Concert Forum discusses these things.
You can resolve a handle using auditableClient.resolveAuditable(). You can get a contributor by ID and other means.
Cheers for your help, the way I found to do it was get all the users off the server using: IContributorHandle[] contributors = projectArea.getMembers(); then convert each one to a IContributor via ITeamRepository and get the item back, you can then get the details from the item |
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.