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

How to get the value of the Planned for attribute for a given workitem using RTC API.

Hello All,

I want to get the value of the planned for the given workitem.

Currently i have the following logic :

 iattribute = workItemClient.findAttribute(currentWorkItem.getProjectArea(), attributeId, monitor);
 if (workitem.hasAttribute(iattribute)) {
                        Object value = workitem.getValue(iattribute);
                        System.out.println((null==value)?"no value":value.toString());
                    }
                  
I am getting the IIterationHandles for this in the value.

How to get the value, such as Unassigned, or the iteration value set to the workitem ?

Please assist.

Thanks.


0 votes


Accepted answer

Permanent link

https://rsjazz.wordpress.com/2012/10/05/handling-iterations-automation-for-the-planned-for-attribute/

Jazzuser user selected this answer as the correct answer

1 vote

Comments

Thanks for the reply Ralph.

I got the value using :
IIterationHandle iterHandle= workitem.getTarget();
IIteration iteration = (IIteration) teamRepository.itemManager()
                                .fetchCompleteItem((IIterationHandle) iterHandle,
                                        IItemManager.DEFAULT, monitor);
    System.out.println("iteration :" + iteration.getName());

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
× 10,938

Question asked: Sep 12 '17, 6:54 a.m.

Question was seen: 2,041 times

Last updated: Sep 12 '17, 7:20 a.m.

Confirmation Cancel Confirm