Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error on Jira form using scriptrunner to calculate a value

mmarcus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2022

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?

1 answer

0 votes
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 20, 2023

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:

https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-issue/#api-issue-issueidorkey-form-formid-put

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events