I created an automation with a manual trigger. It prompts for user input when the rule is triggered. It has one field that is type "Dropdown (Single Select)". There are only two Options for the Dropdown. I would like the field to default to the first Option, but it seems to start blank. I don't see any option for a default value for a Dropdown field - any chance this will be added at some point?
FWIW, this is in a Software Project in Jira Cloud.
That is not possible with the current features, and here is a related suggestion to add defaults to the user input options: https://jira.atlassian.com/browse/AUTO-744
As a workaround, you could copy the input field to a variable when it passes a condition, and substitute that with your default when it is empty. For example:
{{if(userInputs.varMyInputField.isNotEmpty(), userInputs.varMyInputField, "DEFAULT VALUE")}}
Please see this documentation:
conditional logic: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/#if
create variable: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-variable
Kind regards,
Bill
Thank you! I'm glad to see that the suggestion is already out there - my searching couldn't find it. Since I only have two options in my Dropdown, I just switched it to a checkbox. Radio buttons would have been great, too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Currently, Atlassian's automation rules do not support setting a default value for the Dropdown (Single Select) field in a manual trigger. The dropdown will always start empty unless the user selects an option. You can suggest this feature on Atlassian feedback portal for future consideration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bentley, Andrea please share the automation screenshot? We need to check how it is Configured. You can set default value using the automation by using the action edit field and then you can select the option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bill Sheboy answered my question, but just for reference, here are the screenshots:
There is no place to indicate which choice should be the default. Logically, it should be the first choice, but even that is not an option. This is what the user sees:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.