Hi all,
I would like to hide the field "Description" when receiving a specific status.
After leaving the status, the "Description" should appear again.
I tried to write a Post-Function Script with ScriptRunner.
But I didn't find a possibility to change the attributes of the Description,
e.g. setVisible(false), hideField ....
I startet with something like that:
....
Imports....
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager()
FieldLayoutManager layoutManager = ComponentAccessor.getComponent(FieldLayoutManager)
FieldManager fieldManager = ComponentAccessor.getFieldManager()
FieldLayout fieldLayout = layoutManager.getFieldLayout(issue)
EditableFieldLayout editableLayout = layoutManager.getEditableFieldLayout(fieldLayout.getId())
// Get fields
FieldLayoutItem fieldLayoutDescription = fieldLayout.getFieldLayoutItem("description")
.....
Does anyone have an Idea?
Regards
Friedrich