How to make autofill insight field whichdepends from the another insight field?

Ihor Krapivin November 29, 2022

In my case, I need that one insight field to autofill when another insight field has an option. How I can do it? I've already tried scripts from this page https://confluence.atlassian.com/servicemanagementserver0420/post-functions-1095772164.html 
it doesn't work
and tried IQL expressions - it also doesn't work.
Can someone help me?)

1 answer

1 vote
Hieu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 30, 2022
I think that you can use the behavior script.

def fieldChanged = getFieldChanged()
def checkedField = getFieldById("checked_field_id")

if (fieldChange.getFieldId()== "checked_field_id"){
def fieldNeedToFillValue = getFieldById("field_need_to_fill_id")
//Perform your business logic here, example
fieldNeedToFillValue.setFormValue(fieldChange.getValue())
}

Hope it can help you

Ihor Krapivin December 8, 2022

Thank you so much 
i'll try to do it also)
also, I've founded another script to resolve this case)

Suggest an answer

Log in or Sign up to answer