Hi ,
please find the below scenario.
i have two fields A and B
i want to calculate(division) the field A value by 3 and round the value( for example if the value is 1.6 then 2 ), which needs to be assigned to field B automatically.
here is the below code which i tried in field A configuration.
<script type="text/javascript">
function setAgreedSLADAYS() {
var sessioncounter = document.getElementById("customfield_14921");
sessioncounter = sessioncounter.value / 3;
var setagreedsladays = Math.round(sessioncounter);
document.getElementById("#customfield_13892").value = setagreedsladays;
}
sessioncounter.onchange=function(){
setAgreedSLADAYS();
}
</script>
Can anyone help with the above script .Thanks in advance.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.