Smart Values

Devon Engen
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!
March 11, 2025

I am trying to set smart values for a select list, single choice field. However, when I add it to an edit action I do not get the blank field to add in the custom code, I am only getting the 3 options setup for the select list. I did a test adding the filed from the request type and that allowed me to add the code. Screenshot 2025-03-11 094845.png

1 answer

0 votes
Marc - Devoteam
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.
March 11, 2025

Hi @Devon Engen 

You can't add new options to a select field via automation.

You can set the field value to the values specified as options to the field.

Extra options can only be ste by updating the options for the field on the field configuration  via the GUI or API

In a Team Managed project the project admin can do this and in a company managed project a Jira admin will have to update the field options.

Or is this not your request?

 

Devon Engen
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!
March 11, 2025

Thanks for the reply! I'm not trying to add new fields, I am trying to assign values to the choice field options so I can calculate a total at the end (for a risk assessment). For whatever reason, when I use a field I used in custom fields it only lets me select the custom choice options but when I created the field right from the service request, it does. Not sure if it technically maters where I create the field. 

Marc - Devoteam
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.
March 11, 2025

Hi @Devon Engen 

Can you show your form, but this is probably based on not using a custom field for the options, but set options by you.

Can you show the config used in the form and the related automation (if there is one)?

Devon Engen
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!
March 11, 2025

The screen shot above is the automation, and below is the request form. I haven't done anything besides try to assign the values. I was also mistaken, the field I was able to assign values to before was just a number select field. According to my research (shown below) I should be able to assign values to the custom options fora  select list (single choice)

Screenshot 2025-03-11 103349.png

Screenshot 2025-03-11 104117.png

Marc - Devoteam
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.
March 11, 2025

Hi @Devon Engen 

The solution you require is baed on the selection of the values in the select field.

You will need an extra custom field that will store the value based on the option chosen in the select field

So you create an issue the, you set an option from the select field, the automation will then look at this option and then populate the other field with a value.

P.S AI isn't smart on JIra, this comes from experience. It will even combine options to find solutions based on on-prem and cloud options combined and that will never work, as this is impossible.

Best practice, don't use AI for Jira Automation

Like Bill Sheboy likes this
Devon Engen
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!
March 11, 2025

HA! Thanks! I think this makes sense, I'll give it a go! 

Suggest an answer

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

Atlassian Community Events