Hi all,
I'm looking for a way to display a field based on another field selection while creating a ticket in Jira.
I found this how-to, but I have some doubts
------------------------------------------------------------------------------
First of all: I didn't find a custom field called "Free Text Field (unlimited text)".
Should I use a "Calculated Text Field", a "Text Field (multi-line)" or another field type?
------------------------------------------------------------------------------
Speaking about the formula: imagine I have a FIELD A called "priority" (id 500) that will cause a FIELD B called "time" (id 600) to show up if the FIELD A has a value of "2".
Checking row by row in the link above:
priority = document.getElementById('priority') ---> this is FIELD A, right?
target = document.getElementById('customfield_10000'); ---> this is FIELD B, right? So I should write my field id "('customfield_600')"
Why "if (priority.value != 2) target.style.display='none'" needs to be specified
if after there's an "if - else" condition in place?
priority.onchange=function() {
if (this.value == 2) {
target.style.display = '';
target.value="enter message here";
} else {
target.style.display='none';
}
------------------------------------------------------------------------------
I hope you'll be able to clarify my doubts.
Thank you,
Marco.
Fount it!
<<priority = document.getElementById('priority')>> needs the id and not the name as in the example I found in the documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.