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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.