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
A post-function is (mostly) for updating data during a transition. They won't hide descriptions on-screen (unless you actually delete the value of the description field)
I think you should move to "Behaviours", which allows you to hide fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.