If resolution of the field is set to "Duplicate" then I want to make Linked Issues field mandatory such that Issue won't transition and user will get error.
I tried below script in behavior, but it is not working:
For system fields (as opposed to custom fields), I think it's best (and perhaps necessary) to use "getFieldById()"
In this case, it would be something like this (untested)
def resolution = getFieldById( 'resolution' ).value
if (resolution == "Duplicate" ){
getFieldById("issuelinks").setRequired( true )
}
Or possibly
def resolution = getFieldById( 'resolution' ).value
if (resolution == "Duplicate" ){
getFieldById("issuelinks-issues").setRequired( true )
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both the scripts are not working. I have resolution field available on Resolve Issue Screen which is used only on last transition where I set Resolution. I also added Linked Issues field to that screen.
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.