Changing attribute "planned for" of a WI holds rank in the plan. How you force again "not ranked"?
2 answers
In RTC 5.0.2 I found a trick:
NewRankingAttributeHelper.NEW_RANKING_ATTRIBUTE_ID, monitor);
if(newStateCopy.hasAttribute(rankAttribute)){
newStateCopy.setValue(rankAttribute, null);
workItemServer.saveWorkItem2(newStateCopy, null, null);
}
NewRankingAttributeHelper.NEW_RANKING_ATTRIBUTE_ID is a copy in the WI of the rank in the plans for keeping the value between iteration changes. Hence if you set null this value, the WI is set as "Not-Ranked".