getOptions (qcHelper)

    Signature

    HelperqcHelper
    Signature
    getOptions(String fieldName)
    Description

    Returns a list of all available options for a select list by name

    Introduced in1.0.0

    Example use

    Use this method to get options form the list of options

    // BG_USER_01 - the name of the user field in HP ALM/QC instance
    issue.customFields."BG_USER_01".value = qcHelper.getOptions("BG_USER_01").find{it.value == "Failed"}?.value