Is it possible to programatically raise a work item?
As the title suggest really, are there hooks into the Jazz environment that would allow me to place to a button on my application that when pressed, would give me the raise work item? Ultimately I would be aiming for something along the lines of the camera icon that exists in Jazz that takes a snapshot and then raises a work item.
|
5 answers
You could subclass WorkItemUIOperation and implement execute() to populate the work item with data. WorkItemUIOperation will open the work item in a new editor when you run it with run()/runInJob().
Regards, Christof tobycorbin wrote: As the title suggest really, are there hooks into the Jazz environment |
Thanks for the reply, is there any documentation on how to do this? Which jar files are these classes in?
|
Our documentation is not that detailed at this point, the best way to get started would be to use the source code available from the download section on jazz.net. The WorkItemUIOperation is in the workitem.rcp.ui plug-in. (Sharing the result of our previous conversation with the list.)
Christof Jazz Work Item team tobycorbin wrote: Thanks for the reply, is there any documentation on how to do this? |
I have my code set so that I connect to my repository and can successfully login using TeamPlatform.getTeamRepositoryService().getTeamRepository() followed by a call to login. I have also created my own WorkItemUIOperation class and implemented the execute() method. However, I'm stuck with what I need to pass to the operation.runInJob() method. The examples I can see in the code pass a IProjectAreaHandle object. I'm not sure what this object is. With the data I have currently (i.e. a connection to the database), is it possible to just make use of that to raise a work item?
|
For creating the work item you will need a project area, you could use WorkItemUI.selectProjectArea() (workitem.rcp.ui plug-in) to let the user choose one.
Christof Jazz Work Item team tobycorbin wrote: I have my code set so that I connect to my repository and can |
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.