I want to make certain fields mandatory in the Edit screen, but only when a certain Component is selected in the issue.
I've tried using ScriptRunner to do this, but can't seem to write the right server script to check for the correct Component selection?
So for example, if 'M&P' is selected, I want the fields to show as mandatory. If 'Design' is chosen, then NOT Mandatory.
Ideally, I only want certain fields displayed and mandatory when the 'M&P' component is selected, but hidden otherwise.
https://docs.adaptavist.com/sr4js/latest/features/behaviours/behaviours-examples/field-level-permissions is pretty close to what you need already.
Thanks Nic, I'll try to adapt the script to use 'Component'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok. So I've come up with the below, but it doesn't work:-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.