JQL worklogged by Team

Jordi Clos August 7, 2023

Hello all,

I am trying to prepare a Jira Filter to use it in Tempo Worklog Distribution Gadget with the following requirements:

-Time range: current week (this part is solved)

-Users within an specific team (question topic here!)

I am aware of this JQL instruction (which is working as expected):

issueFunction in workLogged ('after startOfWeek() before endOfWeek() by currentUser()')

But when I try to get workLogged by a particular team (ID is 85, example) like this:

issueFunction in workLogged ('after startOfWeek() before endOfWeek() by assignee in team("85")')

It triggers the following error: 

  • Cannot find user with username: assignee.

The worthing "by assignee in team..." I am already using it in other JQL to filter by team. Problem appears when trying to use it within WorkLogged function.

Regards,

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 7, 2023

Hi @Jordi Clos 

What if you use the Team.id JQL option from Tempo.

Jordi Clos August 8, 2023

Hello  @Marc - Devoteam ,

Sorry, can you include and example of JQL filter expression using Team.ID option within worklogged function?

Thanks

Susanne Götz _Tempo_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 8, 2023

Hi @Jordi Clos

Due to the difference in architecture, the Tempo jql parameter "assignee in Team("Name of the Team")" is only avaiable on Server/DC, but not on Cloud. 

A list of the jql options provided by Tempo on Cloud can be found on here 

JIRA offers the option to filter by jira group, which might be a workaround option for you:
"assignee in membersOf("YOUR_JIRA_GROUP")"

Best regards,
Susanne Götz
Tempo team 

Like Marc - Devoteam likes this
Jordi Clos August 8, 2023

Hello @Susanne Götz _Tempo_ ,

The tempo JQL parameter "assignee in Team("Name of Team") is working for me if used outside worklogged function, such as using it in conditional search (AND, OR).

So I suppose the architecture I am using is not Cloud.

Thanks

Susanne Götz _Tempo_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 8, 2023

Hi @Jordi Clos

As far as I know, the "Issuefunction" option is not native to JIRA but is part of Scriptrunner (Adaptavist, https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=datacenter&tab=overview).
You might want to reach out to them and check if Tempo-provided jql options are supported by their app. 

Best regards,
Susanne 

Suggest an answer

Log in or Sign up to answer