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

How to Overwrite Calculated Value with Plain Java API

Hi,

I have an attribute in my process which is populated with a calculated value. Everything works as expected on that attribute via any client. I also needs to overwrite that attribute's value with an EWM's Plain Java API based utility. My utility also works as expected when the calculated value code is removed. However, the calculated value script overwrites my attributes value after I changed it via my Plain Java utility. Is there a way to disable calculated value scripts with Plain Java API?
Thank you in advance.

0 votes


Accepted answer

Permanent link

 Kurtulus, calculated values are always calculated when work items are opened in the UI, or dependent attributes change etc. 


You can not prevent that. You can only apparently overwrite the calculated value, because the calculated value is not executed when the Plain Java Client Library runs against the work item. The only way you could prevent that from happening, would be to use another attribute that stores if the calculated value should overwrite or not. In the case it should not overwrite, the calculated value needs to return the current value of the attribute.

Kurtulus YILDIRIM selected this answer as the correct answer

0 votes

Comments

Ralph, Thank you for your answer.

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

Question asked: Sep 28 '21, 1:43 p.m.

Question was seen: 630 times

Last updated: Sep 29 '21, 2:43 a.m.

Confirmation Cancel Confirm