Check category as unassigned(project category) using server API
![]() Hi All, I want to check in precondition that work item's category is unassigned (root category) then show error message to select different category. ICategoryHandle category = workItem.getCategory(); if(category == null ){ reporterror() }
As unassigned is root category its not going in side if condition. Is there way to check its unassigned(root category)
Thanks,
Kavita |
One answer
![]()
print the result of workItem.getCategory() when the category was set to unassigned, this would most likely return the ID associated with the unassigned literal. use this id/value for comparison in your if statement.. not tested it.. just a quick thought... hope it helps..
|
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.