Problem while creating new workitem with Plain java API
I am following this link to create new work item using plain java API
https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation
But I always get "category not found" when i try to create a work item (for example - Defect or Task etc).
I am passing com.ibm.team.workitem.workItemType as category name while running the program because that is what it shows in RTC work item types list when i select defect or Task
Could you please advice on this?
Thanks
Accepted answer
If you carefully examine the example in the link you post you can see in the section Plain-Java Client how the category is passed as string (categoryName argument 6) . It is not the work item type - as that is also passed as string (typeIdentifier argument 4). The category is what shows in the UI as "filed against" and maintained as category in the project area administration. This is described in the section.
It is a hierarchical human readable string such as Team1/Testing
It is a hierarchical human readable string such as Team1/Testing