Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Behaviour issue - Message Custom Field not hiding

Andrew Henders
October 7, 2020

Hi,

I'm having issues hiding Custom field type "Message Custom Field (for Edit)" using Behaviours.

The following Behaviour server-side script does not hide the Message Custom Field (customfield_13517) on the Create screen:

def singleIssuePicker = getFieldById("customfield_13515")
def messageCustomField = getFieldById("customfield_13517")
def partnerAgreementCf = getFieldById("customfield_13514")
def optionValue = partnerAgreementCf.getValue().toString()

singleIssuePicker.setHidden(true)
messageCustomField.setHidden(true)

if (optionValue == 'Yes') {
singleIssuePicker.setHidden(false)
}
else if (optionValue == 'No') {
messageCustomField.setHidden(false)
}

 

I've tested a few other custom field types which hide OK. Is there a difference with the Message Custom Field field type that does not allow it to be hidden like other fields? Is it possible to hide this field type using another method?

JIRA Server 8.3.4

Scriptrunner 5.6.2.1-jira8

 

Thanks,

Andrew

1 answer

0 votes
Marcos PS _DEISER_
Contributor
June 12, 2018

Hello Dnyaneshwar,

This seems to be your answer, pay attention at the bottom..

If you are using a legacy backup service with a custom directory, you can choose between using the default directory or your custom directory (cannot be edited). Note, if you choose the default directory option, you will not be able to choose the custom directory option.

Best regards,

Marcos.

Suggest an answer

Log in or Sign up to answer