It's all about the answers!

Ask a question

Error Saving Workitem with Approval


EclipseTalk . (32736061) | asked Mar 25 '10, 1:23 p.m.
Hello,
I'm creating an approval for a workitem but when I save the workitem I get the error: "Required property must not be null: internalApprovals.approver"
Does anyone know why? Thanks in advance.


IApprovals approvals = workItem.getApprovals();
IApproval approval = approvals.createApproval(descriptor, contributorHandle);
approvals.add(approval);

3 answers



permanent link
Patrick Streule (4.9k21) | answered Mar 26 '10, 12:36 p.m.
JAZZ DEVELOPER
Thanks for the reply. The contributorHandle was fine. I fixed it by
adding this line, but I'm not too sure why it need it...

((Helper) approval).setInternalId(UUID.generate());

I don't think this is needed, although I saw it in one of our testcases,
too.

--
Regards,
Patrick
Jazz Work Item Team

permanent link
EclipseTalk . (32736061) | answered Mar 26 '10, 10:58 a.m.
Thanks for the reply. The contributorHandle was fine. I fixed it by adding this line, but I'm not too sure why it need it...

((Helper) approval).setInternalId(UUID.generate());

Thanks

permanent link
Patrick Streule (4.9k21) | answered Mar 26 '10, 5:35 a.m.
JAZZ DEVELOPER
I'm creating an approval for a workitem but when I save the workitem I
get the error: "Required property must not be null:
internalApprovals.approver"
Does anyone know why? Thanks in advance.


IApprovals approvals = workItem.getApprovals();
IApproval approval = approvals.createApproval(descriptor,
contributorHandle);
approvals.add(approval);

What's the value of contributorHandle? Could it be null?

--
Regards,
Patrick
Jazz Work Item Team

Your answer


Register or 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.