User Tools

Site Tools


neat_things

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
neat_things [2018/04/06 11:03]
root
neat_things [2019/01/24 13:03] (current)
root
Line 58: Line 58:
  </script>  </script>
 </code> </code>
 +
 +=== Display radio button option that was selected with alert message ===
 +<code java>
 +<script type="text/javascript">
 +jQuery(document).ready(function($) {
 +JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
 + callVerifyAndUpdateFunction();
 +});
 +callVerifyAndUpdateFunction();
 +function  callVerifyAndUpdateFunction(){
 + var radioValue1=document.getElementById('customfield_14444-1').checked;
 + var radioValue2=document.getElementById('customfield_14444-2').checked;
 + var radioValue3=document.getElementById('customfield_14444-3').checked;
 +        if (radioValue1){
 +           alert('selected option 1');
 +        }        
 +        if (radioValue2){
 +           alert('selected option 2');
 +        }
 +        if (radioValue3){
 +           alert('selected option 3');
 +        }
 +        
 +
 +}
 +
 +});
 +</script>
 +</code>
 +
  
 ==== Adding messages to your JIRA tickets ==== ==== Adding messages to your JIRA tickets ====
Line 75: Line 105:
  
 {{:code.png?800|Option configuration screen}} {{:code.png?800|Option configuration screen}}
 +
 +==== Disabling a field from being seen using banner ====
 +**<color red>have not confirmed this yet</color>**
 +Link: [[https://community.atlassian.com/t5/Jira-questions/User-s-quot-Configure-Fields-quot-settings/qaq-p/43816|Atlassian Forum Discussion]]
 +I found this in the above linked forum discussion, not tested yet.
 +<code java>
 +<script type="text/javascript">
 +(function($) {
 +AJS.toInit(function(){
 +// init on load
 +AJS.$("#qf-field-picker-trigger").hide();
 +})
 +JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
 +// init on refresh
 +AJS.$("#qf-field-picker-trigger").hide();
 +});
 +})(AJS.$);
 +</script>
 +</code>
  
neat_things.1523027015.txt.gz · Last modified: 2018/04/06 11:03 by root