Workflow validator for duplicate issue

Lasse Skov January 9, 2018

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.

2 answers

0 votes
Mechee March 20, 2024

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(*'Duplicate'))


0 votes
Vishnukumar Vasudevan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2018


Do you have Script Runner plugin installed ? 

If so, add scripted validation like mentioned here

Thanks, Vishnu

Suggest an answer

Log in or Sign up to answer