Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Validate that all linked issues are DONE - ScriptRunner Cloud

I created this question months ago, and we are now migrating to Cloud.

Is there a way someone can help me to translate the following code to Script Runner Cloud:


import com.atlassian.jira.component.ComponentAccessor
def linkMgr = ComponentAccessor.issueLinkManager
linkMgr.getLinkCollection(issue, currentUser).allIssues.findAll{it != issue}.every{it.resolution}


Thanks in advance!


1 answer

1 accepted

1 vote
Answer accepted

So, I'm not exactly sure what your Groovy is doing (because I don't see it checking for "Done"), but ScriptRunner (and all validators) have to use Jira Expressions.

So to "Validate that all linked issues are DONE" this should work:

issue.links.filter(L => ( == 'Done')).length ==

I looked at the Jira Expressions examples for ScriptRunner here:

And also this old answer, although I think the final code is wrong:

I tested my code using the excellent Jodocus Expression Tester.

Perfect!! Thanks for the suggestion of the Expression Tester, very useful.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you