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>
I want to get value from select list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you go through the prasad's answer at the end
https://answers.atlassian.com/questions/200518/script-to-replace-summary-field
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.