Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Error on Jira form using scriptrunner to calculate a value

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.
Oct 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events