Calculation on the points field(rm_story)

Prasanna_Patil
Tera Guru

Hey Folks,

On the table rm_story there is field called "points" i would like to make this as RO and capture this field value based on the fields that i have added in the sections

prasannapatil_0-1712220735009.png

The purpose of this section is to understand how much effort each team putting to get the story done.

However, I would like to know how this can be achieved? if someone can help.

Thanks, in advance!

 

Please hit like and Mark Helpful if you liked it
Regards,
Prasanna
1 ACCEPTED SOLUTION

Prasanna_Patil
Tera Guru

Hi 

 

I found the solution thank you

 

 

Please hit like and Mark Helpful if you liked it
Regards,
Prasanna

View solution in original post

2 REPLIES 2

tharun_kumar_m
Mega Guru

Hi Prasanna,

 

Since you have already added the related list fields, most of the work is already done.

 

To make the points field read-only, you can navigate to System UI -> UI Policies. Create a new UI policy on rm_story table. In when to run condition you can check onload and in script and add the below code.

function onCondition() {
g_form.setReadOnly("story_points",true);
}

 To set the points based on values in your related list, you can use an onload client script where you can query the fields and add their values to the points.

Please comment the you approach for adding these fields in the related list if you would like to have more insights on the client script to set the points.

 

f my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.

 

Best regards,

Tharun Kumar

Prasanna_Patil
Tera Guru

Hi 

 

I found the solution thank you

 

 

Please hit like and Mark Helpful if you liked it
Regards,
Prasanna