On a particular transaction in a workflow, a screen will be poped up to the user and user is expected to fill few fileds on the screen but along with those fields even cooments is also getting added to the screen. So, I had inserted below code in the descrition of one of the fields, t worked in the server version of JIRA but the samething is not working in cloud instance. And top of it, the script is also getting displayed in the scree below that field.
Could someone please help e on this on how to achieve this in cloud instance.
Below is the code used:
<script type="text/javascript">
if(AJS.$('#issue-workflow-transition-submit').val() =='Verify Trainings'){
AJS.$('div.comment-input').css('display', 'none');
}
</script>
You can restrict comments via project properties in that status, but I don't find any reason to forbid comments in a transition if they are optional
Thank you for your response.
As we are capturing comments already in another custom filed, we would like to get rid of this redundant field. So, simply I just dont want that filed to be shown on the screen.
Which property I can use? And can the property hide the comment field on the screen
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.