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

2 answers

0 votes
Bob Swift
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 Champions.
September 16, 2015

Well, resolution is normally only changed via a transition. The field is usually only on a transition screen and therefore will not be able to be set (or cleared) unless you are doing a transition. This is standard behavior of JIRA that only allows fields that are on the corresponding UI screen to be updated/set. Clearing the resolution field is normally done a post function on a transition like Re-open. 

0 votes
Deleted user
September 16, 2015

I have never done it and was not able to do it at all.  @Bob Swift [Bob Swift Atlassian Add-ons], maybe able to enlighten us smile

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events