Quantcast
Channel: Active questions tagged atlassian-plugin-sdk - Stack Overflow
Viewing all articles
Browse latest Browse all 282

How to set default value in Select dropdown in velocity template file?

$
0
0

I am trying to build a custom build Jira Plugin, on the UI of plugin I am displaying select dropdown which consist of list of Issue Types.

I need to make option value "ALL" as default one for that select dropdown. I have written following code for that.

<label for="issue-types" >Issue Type(s):</label><select onchange="disableIfNoIssueTypeSelectedMandate()" class="multi-select" multiple="multiple" id="issue-types-mandate" name="issueTypes[]"> #foreach ($issueType in $allIssueTypesInProject)<option value="$issueType.get("id")">$issueType.get("name")</option>#end</select></div>```Can anyone please help me to know how to set default value in this select dropdown?

Viewing all articles
Browse latest Browse all 282

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>