where is the field state in the DB2 history
We have created a new work item called 'service request' which is similar to 'defect'. Our user can decide if a defect is a service request and change the typology. With the API we then perform evaluations of the states and in one case the state provided by the API is null, while the GUI shows to us that the change from defect to service request involved a change from state 'new' to state 'needs evaluations'.
In which DB2 table containing the history of a work item can we look to see which value is actually present ? |
2 answers
Ralph Schoon (63.6k●3●36●47)
| answered Feb 21 '14, 8:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You don't access the data in the database. It is also very hard to get at that data.
I would suggest to look into the API calls and try to find out why it is null. I am unsure why that should happen. Comments Here is the code how we fetch the state:
Because i'm unable to edit my comment.
|
Ralph Schoon (63.6k●3●36●47)
| answered Feb 21 '14, 11:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Feb 21 '14, 11:18 a.m.
This does never fit into the comment.....
I am not sure what you try to achieve here. The code above does not fetch the current workflow state of the work item. fetchAllStateHandles Retrieves the full history of the given auditable item. The auditable item states retrieved as part of the resulting history object are complete states. The operation fails if the client is not logged in to the repository. fetchPartialStates
So what you are doing is, you get the historical states of a work item and then for each historical state, you get the workflow state that the work item had.
Is that what you try to achieve here? Or do you want to get the current workflow state of the work item?
I assume if you go through the history of a work item, there could be one with no state, or a null state. Not sure. Comments
Ralph Schoon
commented Feb 21 '14, 11:10 a.m.
| edited Feb 21 '14, 11:19 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
State in the context above has two different meanings
Ralph Schoon
commented Feb 21 '14, 11:15 a.m.
| edited Feb 21 '14, 11:19 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
With your code, you won't see the workflow states as they are in the UI. The UI shows only the current state of the work item (and the current workflow state).
Yes, we want to see the history and all changes of the state for a single workItem.
|
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.