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

How to change the Planned For Attribute of a Work Item using APIs

Hi ,

I need to change the "Planned For" Attribute of a Work Item using APIs.

I am using the following code for the same:
   
       String attributName = "Planned For" ;

      IAttribute attribute = new 'className'.getRtcAttribute(workItemClient, iProjectAreaHandle, repositoryObject, monitor, attributName);
              
       item_work.setValue(attribute, "value");
           
       workItemWorkingCopy.save(monitor);

This code works fine with Text box values (e.g. Time  Spent) but not wit Drop Down Values(e.g. Type, Planned For etc....).

Please let me know if anyone has done it before.

Thanks
Vaibhav



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
× 1,700
× 1,220

Question asked: Jul 19 '17, 3:40 a.m.

Question was seen: 2,488 times

Last updated: Jul 19 '17, 3:45 a.m.

Confirmation Cancel Confirm