The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello everyone
This code it's functionnally :
import com.atlassian.jira.component.ComponentAccessor
def singleSelect = getFieldById(fieldChanged)
def multiSelect = ComponentAccessor.customFieldManager.getCustomFieldObjectByName("CustomFieldB")
def msConfig = customField.getRelevantConfig(issueContext)
def msOptions = ComponentAccessor.optionsManager.getOptions(msConfig)
def filteredOptions = msOptions
switch (singleSelect.value) {
case "1":
filteredOptions = msOptions.findAll {it.value in ['A', 'B', 'C']}
break
case "2":
filteredOptions = msOptions.findAll {it.value in ['D', 'E', 'F']}
break
}
formField.setFieldOptions(filteredOptions)
But i would like when i clik in case "1" and after i click in case "2" the list does not updated
exists a function for updating list or ohter , beacuse im need this functionnallity for continue the project
Thanks in advance :)
Yes , but i'm search a function who do update a liste when i change in between case in real time
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events