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.

Hi,

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

Can I do this by using scriptrunner ?

 

Thanks

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
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

303 views 1 3
Join discussion

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