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

Hiding a Database custom field based on sub-task issue type

jmodi1982 July 6, 2015

Hi,

I am trying to hide a database custom field based on sub-task issue type using behavior plugin but it is not working. I have tried below script in behaviours plugin - 

public void setPriorityJustification() {
    FormField priField = getFieldById ("issuetype")
    FormField priJustField = getFieldByName ("CustomField_1234")
    String priority = (String) priField.getFormValue()
    if (priority == "10007") { // 10007 is 1 of the issue type
        priJustField.setHidden(false)
    }
    else {
        priJustField.setHidden(true)
    }
}

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
jmodi1982 July 6, 2015

@Jamie Echlin [Adaptavist] - Please can you help me out with the query.

TAGS
AUG Leaders

Atlassian Community Events