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

Checking and changing work item status

How can I check work item status from Java program for example if it is not "New" and change it to "Reopen".
Thank you

0 votes



3 answers

Permanent link
How can I check work item status from Java program for example if it
is not "New" and change it to "Reopen".
Thank you

IWorkflowInfo contains the information you need. As workflows are entirely
customizable, you shouln't rely on identifiers or even names of specific
states:

IWorkflowInfo#getReopenActionId() gives you the action ID of the reopen
action regardless of the specific workflow. You pass the action into the
save work item call to change the state of the work item (the state cannot
be set directly).

IWorkflowInfo#getStateGroup(state) gives you the information whether a
work item is in an 'open' or 'in progress' or 'closed' state, regardless
of the exact configured state.

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
so how can I initialize IWorkflowInfo class object?
I can not find any documentation :/

0 votes


Permanent link
so how can I initialize IWorkflowInfo class object?
I can not find any documentation :/

You can get IWorkflowInfo by using:
IWorkItemCommon#IWorkflowInfo findWorkflowInfo(IWorkItem workItem,
IProgressMonitor monitor)

--
Regards,
Patrick
Jazz Work Item Team

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
× 10,941

Question asked: Nov 25 '08, 3:38 a.m.

Question was seen: 6,207 times

Last updated: Nov 25 '08, 3:38 a.m.

Confirmation Cancel Confirm