It's all about the answers!

Ask a question

Default values for WorkItem via Java SDK


Bartosz Chrabski (3.4k12749) | asked Jun 23 '14, 5:50 a.m.
 Hi Jazz Team,

Currently I am in project where I have to extend RTC that it will set default values via sdk extension (it is not possible to do it via JS).

The questions is which class do I have to extend, because com.ibm.team.workitem.operation.workItemSave is not good hit for defaults ?

End, additionally do we have any examples ?

Comments
sam detweiler commented Jun 23 '14, 7:35 a.m.

please take the extensions workshop
https://jazz.net/library/article/1000

your extension will either (no workitem changes)

extends AbstractService implements IOperationAdvisor

or (supports workitem changes)

extends AbstractService implements IOperationParticipant


Bartosz Chrabski commented Jun 23 '14, 7:38 a.m.

Sam,


That is true, but I am more asking where it should be injected, because I would like to have values set before save, not just after (so I cannot use  com.ibm.team.workitem.operation.workItemSave) 


sam detweiler commented Jun 23 '14, 7:41 a.m.

the extension points are all AFTER the user presses Save.

only the javascript field default  value handler fires before the UI is finished.


Bartosz Chrabski commented Jun 23 '14, 7:48 a.m.

Using the JavaScript, I am not able to modify the approvals and I would like to set this values as default. 


sam detweiler commented Jun 23 '14, 7:49 a.m.

I understand.. unfortunately, RTC does not provide enough services to complete all the requirements u have.

Be the first one to answer this question!


Register or 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.