Work Item approvals, change state
in https://jazz.net/products/rational-team-concert/features/wi
is this sentence about approvals
"Work item customization can be used to automatically trigger a state transition on the work item if an approval has been accepted (or rejected)."
what does that mean? create a script to change the state? I don't see how the 'state' field in the list of approvals ever gets enabled.
|
Accepted answer
sam detweiler selected this answer as the correct answer
Comments
sam detweiler
commented Jan 16 '14, 1:29 p.m.
fabulous, thanks for the great detail.
a place I haven't created any extensions!!.. fun!
I 'assume' that the workitem Save pre/post conditions fire before these events..
sam detweiler
commented Jan 16 '14, 3:37 p.m.
well, this seems to need a little more data.
is there a wiki someplace on this?
I continue to have trouble tying the pieces together.
sam detweiler
commented Jan 21 '14, 4:48 p.m.
is there any wiki doc on this? I 'think' the description is upside down (based on the content of the plugin.xml)
assuming rtc provides the definition, I should only have to create the event handler.
There is no documentation I am aware of. I found examples looking at the extension point in the SDK.
sam detweiler
commented Jan 27 '14, 6:09 a.m.
thanks.. I have made progress. both my event handler and reworking your sample.
Sam, if there is client API in the sample, remove the plugin and try common or service. It should not be in there, I might have to review the code and upload a fixed version.
sam detweiler
commented Jan 27 '14, 7:18 p.m.
ok, i have approvals added to workitems.. how do you change the state? marked 'pending', but the 'edit approval' button is greyed out' .
I do not have workflow actions assigned at this time.
sam detweiler
commented Jan 28 '14, 5:48 a.m.
hm.. I logon as the assigned user and I can edit.. as long as it is not ME the workitem creator.
showing 5 of 8
show 3 more comments
|
One other answer
Under Project Configuration -> Configuration Data -> Work Items -> Approval Trackings
you can select the Workflow and then for the approval type, specify a workflow action. So for us, on our Defect Workflow, we state that an Approval of type "Verification" when marked Approved triggers the Workflow Action "Verify" and if the approval of type "Verification" is marked Rejected, it triggers WorkflowAction "Reject". Perhaps this is not what you were looking for, since it doesn't require any extension. Susan Comments thank you.. we would do the same.
Susan Hanson
commented Jan 17 '14, 12:29 a.m.
there-in lies the rub :-)
You might want to look at this post: https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/
thanks Ralph. that didn't show in any searches I did for approvals info.
Ralph Schoon
commented Jan 17 '14, 6:43 a.m.
| edited Jan 17 '14, 7:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Sam, hard to answer the question.
sam detweiler
commented Jan 17 '14, 7:09 a.m.
sam detweiler
commented Jan 17 '14, 10:27 a.m.
Ok, once again I see this crazy error which isn't clear on the cause
WARN eam.repository.provision.internal.ProvisionService - CRJZS0383E The "Create_Workitem_Approvals" bundle could not be resolved.
I copied an existing ini file to modify
I used cut/paste the folder and feature names into the ini file.
what is 'bundle'? that is the 'ID' in the feature
<plugin
id="Create_Workitem_Approvals"
and the plugin filename is
Create_Workitem_Approvals_1.0.0.201401170958
Ralph Schoon
commented Jan 17 '14, 10:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I think it is whatever you call the feature when packaging it. I follow the Extension Workshop pattern.
showing 5 of 8
show 3 more comments
|
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.