I want to put a custom scripted condition/validator (not sure which is better in this case?) on a transition so that it can't be performed unless all linked issues are resolved.
I've tried some scripts I've found on Script Runner forums but get errors with ComponentManager and java.Lang.object and so forth which I'm guessing means they are out of date.
Basically I just need a condition that says:
If (there are any issues linked to this one with relationship 'triggered by') AND (the status of those issues is not resolved), set the value of this condition to FALSE (or whatever doesn't allow the transition).
Can anyone please help me to express this in Groovy?
I am looking for the same solution, preferably a Validator. I have used the recommended link (scriptrunner.adaptvist.com) and found many useful tips and examples for other things we needed, but not for this particular one. I have also looked at 50 or so other links, and still no luck. There are reports that ""issueFunction in linkedIssue Of("Subquery", "Link description") have worked for some, and while I can filter in the Issue Navigator using this, it does not work for me as a Simple Script Condition/Validator. We are (still) using JIRA 6.2 and Script Runner 2.1.17, with upgrades planned later this year.
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.