Need to Copy drop down value to summary in create screen using javascript?
try with this
<script type="text/javascript"> jQuery(document).ready(function($) { JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) { addSummary(); }); addSummary(); function addSummary(){ $('#customfield_11327').change(function() { AJS.$('#summary').val($('input[name=customfield_11327]:checked + label').text()); }); AJS.$('#summary').val($('input[name=customfield_11327]:checked + label').text()); } }); </script>
you go through the prasad's answer at the end
https://answers.atlassian.com/questions/200518/script-to-replace-summary-field
I want to get value from select list.
if you get select list value then it will return ID of selected option, for this simply you can use
$('#customfield_11327').val();
if you want selected option text then you can use code inmy answer
don't forget to load javascript as webresource in module
It looks like you're new here. Sign in or register to get started.