How can I change an optonal field into a required field in a workflow.
For example if an issue is set on "in work", an optional field should be set on required.
Thank you very much for answering my question.
You need to add a validator to the transitions which going out from the status "in work". You can read more here
Also you need to install Jira suite utilities plugin
If I have understood your question correctly, You will need to add a field required validator on the transition which takes the issue to "in work". This is provided by a free add-on JIRA suite utilities which I believe is a must have add-on for every JIRA instance (Probably you are already using it)
Refer the below KB ,
I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs