Hi,
I want to make the Work Description field under Log Work mandatory.
I tried to solve this via a Scriptrunner behaviour.
I have a very simple Script which does the job but unfortunately also makes the normal commment field mandatory since this seems to have the same ID "comment"
import com.atlassian.jira.issue.worklog.Worklog
def commentField = getFieldById("comment")
commentField.setRequired(true)I tried to get the correct field with the name "Work Description" which seems to be the label of the field but although I am able to change this I cannot find a way to get the value it already has.
commentField.setLabel("Test") changes the name that is displayed.
But commentField.getLabel() or commentField.label does not get me anything back.
Anyone has an idea how to solve this?
Perhaps there is also a way without Scriptrunner to do it?
Best Regards,
Thomas