It's all about the answers!

Ask a question

How to determine current workitem


Srimanth Gunturi (206125) | asked May 19 '09, 9:44 a.m.
JAZZ DEVELOPER
Hello,
Wanted to know how to determine the current workitem?
Regards,
Sri.

Comments
sam detweiler commented Nov 23 '12, 5:03 p.m.

in what context?  what code is running?  if an extension (advisor/participant), it is passed in

Sam


S M commented Nov 23 '12, 5:07 p.m.

@Sam

If I understand it correctly, Srimanth has the same problem as I have. I want to extend the RTC client and then get the current work item.


sam detweiler commented Nov 23 '12, 5:23 p.m.

see my response to your other post.

I have changed the client behavior (extended) the client by changing the product code.. there are no general purpose extension points that I am aware of.


S M commented Nov 23 '12, 6:45 p.m.

Thanks. I tried that too, but so far, I couldn't get it working. Since I can't get the source code. But probably this will change :)


sam detweiler commented Nov 23 '12, 7:58 p.m.

I posted back about the source code.. you have to download it separately, called the 'sdk'..

4 answers



permanent link
Patrick Streule (4.9k21) | answered May 21 '09, 7:11 a.m.
JAZZ DEVELOPER
Hello,
Wanted to know how to determine the current workitem?
Regards,
Sri.

This snippet returns the current work item:

IWorkItemHandle workItem=
ClientModel.getWorkItemActivationManager().getActiveWorkItem();

--
Regards,
Patrick
Jazz Work Item Team

permanent link
alan kemp (6185) | answered Mar 08 '11, 10:31 a.m.
thanks. sounds good. but what is and how do I get a ClientModel?

permanent link
alan kemp (6185) | answered Mar 09 '11, 12:46 p.m.
nobody knows what a ClientModel is?
cause it's pretty tough to learn this stuff with no documentation.

permanent link
S M (8621723) | answered Nov 23 '12, 3:51 p.m.
I have the same problem. Where do I get ClientModel from?

Your answer


Register or to post your answer.