We have created a expense form in Jira SM in which we want to calculate the sum of a few "amount" fields.
The script seem to be working however is not able to add the sum-value in Total Amount field.
The error is (from the scriptrunner logs)
022-06-29 02:07:31.639 WARN - PUT request to /rest/api/3/issue/PSD-1526/properties/proforma.forms.i1 returned an error code: status: 403 - Forbidden body: {"errors":{},"errorMessages":["Property proforma.forms.i1 is restricted"],"httpStatusCode":{"present":true}}
Any suggestions on what the issue might be?
Hi!
So, for my understanding what you're trying to do is take 2 values from a form and then edit the form, setting another field with the sum of the 2 fields?
Have a look at the Forms API documentation:
There is an endpoint to save form answers documented there and from the error you provided I can see a different endpoint being used.
Hope this helps!
Jeroen
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.