Hi,
I created the script below to set the status of an issue to To Do' only is the custom value is set as 'No'
issue.issueType.name == 'Story' & cfValues['Isolated']?.value == 'No'
Is it possible to add, if the epic link status is 'To Do?'
Cheers,
Jason
image2016-10-31 11:47:33.png
Hi,
you get check the inward links and check for a soecific one (in your case the Epic-Story Link) with a script like
import com.atlassian.jira.component.ComponentAccessor def flag = false ComponentAccessor.getIssueLinkManager().getInwardLinks(issue.id)?.each { it -> if (it.issueLinkType.name == "Epic-Story Link" && it.getSourceObject().status.name == "To Do" ) { flag = true } }
regards, Thanos
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.