Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Changing attribute "planned for" of a WI holds rank in the plan. How you force again "not ranked"?

We have two plans with a rank view. When we swap the iteration in "planned for", the WI holds rank from the old plan. Is there any way to avoid this and re-forcing "not ranked"?

0 votes



2 answers

Permanent link
I am not aware of any automation for that.

PS: With all the versions out there it becomes more and more important to mention the version in use.

0 votes


Permanent link
In RTC 5.0.2 I found a trick:

 IAttribute rankAttribute = workItemServer.findAttribute(projectAreaHandle, 
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". 

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Mar 11 '16, 2:38 a.m.

Question was seen: 2,160 times

Last updated: Mar 28 '16, 11:45 a.m.

Confirmation Cancel Confirm