Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do i make system field drop values dependant from custom fields selected value

Margarit Holm
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2018

I have system field AffectsVersions  with options a,b,c and custom field A with options a, b, c. They all have multiple values to select. So what i need: if i choose option a from custom field a, i want the option for AffectVersions to be a as well, without me choosing it manually. I found a javascript code, but unfortunately its not working in Jiras script-runner. are there other possibilities? Her is the js code:

<script type=“text/javascript”>
source = document.getElementById(‘customfield_10025’);
if (source) {
target = document.getElementById(‘AffectsVersions’);
source.onchange=function() {
if (this.value == a) {
target.value=a;
}
}
}
</script>

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events