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

Error Saving Workitem with Approval

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);

0 votes



3 answers

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

0 votes


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

0 votes


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

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,937

Question asked: Mar 25 '10, 1:23 p.m.

Question was seen: 5,756 times

Last updated: Mar 25 '10, 1:23 p.m.

Confirmation Cancel Confirm