Hi
I want to block Epic Status based upon the task Status, like the way we have subtask blocking condition for task. in Script runner plugin.
Could anyone help.
Regards,
Sajid
You can use the same conditions as the one for subtasks:
Write a scripted condition similar to the one below:
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.link.IssueLink linkType = ["Epic-Story Link"] linkMgr = ComponentAccessor.getIssueLinkManager() for (IssueLink link in linkMgr.getInwardLinks(issue.id)) { if (linkType.contains(link.issueLinkType.name)) { if (link.sourceObject.status.name != "Done") { passesCondition = false } } }
Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!
Start here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.