Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

GetValue from Cascading List and set Epic-Link automatically

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 &amp; 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 {
}




1 answer

Thanks in Advance!! :) 


Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.3
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

637 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you