You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.