I noticed that Jira Service Desk has a new GUI and that is not possible to use javascript code added in field description. It is also not possible to use Behaviours plugin scripts in the new forms.
I would like to find out if our jira has problems or this is normal behaviour of the new forms.
If javascript in description of the field is not supported anymore:
- Are there any plans to add this functionality?
- Is possible to use some workarounds (or different approach)?
Jira version: 5.2.2
Behaviours: 0.5.3
Javascript example:
<script>
function getCurrentUserName_sr()
{
var user;
AJS.$.ajax({
url: "/rest/gadget/1.0/currentUser",
type: 'get',
dataType: 'json',
async: false,
success: function(data) {
user = data.username;
}
});
return user;
}
var user = getCurrentUserName_sr();
AJS.$("#customfield_13421").val(user);
</script>
0.5.3