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

Adaptavist ScriptRunner.... Can I query using team as a field.


I would like to query for all sub-tasks in a team Team-A.

Can I do this by using scriptrunner ?



1 answer

0 votes
Jack Community Leader Nov 08, 2019

it depends on what you mean by "in a team", e.g. do you mean assigned to someone in Team-A. Likely you can achieve w/o SR...

assignee in membersOf("Team-A")

Yes, i mean to query any sub-task assigned to a member in a team called "Team-A".

so the JQL should be:

type = sub-task and assignee in membersOf("Team-A")

am I correct ?

in order to use this JQL, what do i need to do in ScriptRunner ?

Jack Community Leader Nov 08, 2019

yes that will work. you do not need Scriptrunner at all. just go the the advanced search screen and enter that JQL you have there. That is, of course, assuming you have a group named "Team-A" and the members reflect the users you are interested in.

I do not have a Group, I do have a team.

so what do I need to do in order to do JQL using a "team"... not a "Group"

Jack Community Leader Nov 08, 2019

sorry...not familiar with "Team" function. Maybe this is a Scriptrunner function? If so then I'm steering you wrong here. :-(

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Introducing new features for Jira Software Cloud's roadmap

Hi Atlassian community, A few months ago, we offered a sneak peak of the new hierarchy view on the roadmap. Thank you for all the feedback (and excitement) and for helping us shape the direction of...

24,917 views 116 85
Read article

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