Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to set priority of an issue by calculating values selected during creation of an issue

mohammed aamer khan April 10, 2022

Hi There,

While Creating issue I have some custom fields in which I select option. When ever an option is selected it should store some value.
For Example: Their is a field 'City' it includes values {'Hyd', 'pune','Mumbai'} when 'Hyd' is selected it should store 5points in a field, if Pune is selected then it should store 10 points.
Similarly I will have multiple fields with same case. After selecting all values I want to calculate total and set priority based on total.
I am using "Select List(Cascading) field type" for selecting options according to my requirements.

Thanks,

Aamer

1 answer

1 accepted

1 vote
Answer accepted
Sam Bartolome
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2022

Hi @mohammed aamer khan ,

You can achieve your request using automation.

Create the conditions based on the fields and points for each selection and then calculate them and display in a further custom field.

This should be the easiest way to do it

mohammed aamer khan April 11, 2022

Hi @Sam Bartolome 

Thanks for the reply, Actually it would be great if I could be able to achieve it using script runner. Do you have any idea(using script runner) or script related to it?

 

Thanks

Aamer

Sam Bartolome
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2022

Not good at all with scripting.

In general you should access every selected condition and then assign the required number for later calculate and populate are needed. maybe scripted fields from scriptrunner may help you there.

 

As a workaround i would suggest to use automation so it is running and then look to create the script

mohammed aamer khan April 11, 2022

Thanks @Sam Bartolome 

Like Sam Bartolome likes this
mohammed aamer khan April 21, 2022

Hi There,

Achieved it via Automations with If/else conditions.

Thanks,

Aamer

Suggest an answer

Log in or Sign up to answer