Can I set default value for Dropdown on Prompt for input on Manual Trigger automation?

Bentley, Andrea December 10, 2024

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.

3 answers

1 accepted

3 votes
Answer accepted
Bill Sheboy
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.
December 11, 2024

Hi @Bentley, Andrea 

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

Bentley, Andrea December 11, 2024

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.

Like Bill Sheboy likes this
0 votes
Matthew Luke
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!
December 31, 2024

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.

0 votes
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 10, 2024

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. 

Bentley, Andrea December 11, 2024

Bill Sheboy answered my question, but just for reference, here are the screenshots:

Jira-Automation-ManualTrigger-DropdownInput.jpg

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:

Jira-Automation-ManualTrigger-Dropdown-NoDefault.jpg

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events