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

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.

0 votes



5 answers

Permanent link
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
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.

0 votes


Permanent link
Thanks for the reply, is there any documentation on how to do this? Which jar files are these classes in?

0 votes


Permanent link
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?
Which jar files are these classes in?

0 votes


Permanent link
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?

0 votes


Permanent link
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
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?

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

Question asked: Feb 25 '08, 1:41 p.m.

Question was seen: 5,720 times

Last updated: Feb 25 '08, 1:41 p.m.

Confirmation Cancel Confirm