I my workflow i would like to configure a validator in transition between Todo to Done through duplicate.
My validator should verify that before the resolution on the issue is set to Duplicate, it should validate that the issue Im trying to set to done has set the field Linked Issue duplicates with at least one value.
I guess this could be done with a s-jql but can't figure out how.
I know this is old but I don't know how to comment on the Script Runner validation link from the previous answer. Basically, it doesn't work as written because it won't let the issue be closed even if other resolutions are selected besides "Duplicate". I had to change it to the following in order for it to work:
import com.atlassian.jira.component.ComponentAccessor
issue.resolution?.name != 'Duplicate' || ComponentAccessor.issueLinkManager.getOutwardLinks(issue.id)*.issueLinkType.name.contains('Duplicate'))
Hi
Do you have Script Runner plugin installed ?
If so, add scripted validation like mentioned here
Thanks, Vishnu
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.