Hey there,
I created a customfield (cascading list) and wanna set the epic link automatically - depending of the value A in the cascading list.
I have an epic issue in this project called "Teammanagement" It's issue key is ITAB-1453
I also have an cascading list called "Applikation/Tätigkeit" with a lot of variables in there.
<select class="select cascadingselect-parent" id="customfield_14730" name="customfield_14730">
<option class="option-group-13417" value="13417">Personalführung</option><option class="default-option" value="">Keine</option>
<option class="option-group-13418" value="13418">Kosten</option>
<option class="option-group-13419" value="13419">ILV (Interne Leistungsverrechnung) </option>
<option class="option-group-13420" value="13420">SAP</option>
<option class="option-group-13421" value="13421">Datenschutz & Compliance</option>
<option class="option-group-13422" value="13422">Outputmanagement</option>
<option class="option-group-13423" value="13423">SAP Automatisierung</option>
<option class="option-group-13424" value="13424">Cognitive Document Automation</option>
<option class="option-group-13425" value="13425">Robotic Based Automation</option>
<option class="option-group-13426" value="13426">SAP Support</option>
<option class="option-group-13427" value="13427">Workforce Management</option>
<option class="option-group-13428" value="13428">Middleware/Integration</option>
<option class="option-group-13429" value="13429">Datenbanken</option>
<option class="option-group-13430" value="13430">Meter Data Management</option>
<option class="option-group-13431" value="13431">Netzkundeninformationssystem</option>
<option class="option-group-13432" value="13432">Testmanagement</option>
<option class="option-group-13433" value="13433">Atlassian</option>
<option class="option-group-13434" value="13434">Supportsysteme</option>
<option class="option-group-13435" value="13435">Objektschutz</option>
</select>
Let's say I set the Value A in the List to its first option:
called "Personalführung" value="13417" I want set the epic-link automatically to Teammanagement" It's issue key is ITAB-1453.
I used the follwing code, but it don't works?
______________________
def cfEpic = getFieldByName("Epic Link")
def cfApplikation = getFieldByName("customfield_14730")
if (cfApplikation.getValue() == "13417") { // Personalführung
cfEpic.setFormValue("ITAB-1453") //Team Management
} else {
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.