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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.