issueFunction in worklogged('inGroup <groupname>') works inconsistently

While issueFunction in workLogged('inGroup jira-developers') yields results, issueFunction in workLogged('inGroup <groupname hidden>') does not, despite the group containing users and those users having logged work.

Any ideas?

4 answers

Sorry, didn't understand what is <groupname hidden> Could you please elaborate ?


Referring to the documentation on the worklogged issueFunction. What version of JIRA are you running this against?

In particular, are you using JIRA 6.4 (also likely ScriptRunner for JIRA version 3.0.11+) or later - since it will only work for these later versions (since this is when JIRA started indexing the worklogs)?

Screenshare with Klaus showed they are using JIRA 6.4.x and ScriptRunner 4.1.1. The query seems to work with "InGroup jira-developers" but not with a user defined group. The users belong to the an AD User Directory but a local user-defined group.

ok, this makes it clear. May be it is bug or something, Its working fine for me "internal user for ldap authentication"

Perhaps the indexed value is not the same as the AD group name, to allow for the AD group changing name or something. I will have to write some test code to work out what the issue is here...

It looks like this may be a bug but there is a workaround until we fix this. I would recommend trying this query instead: issuefunction in workLogged("by membersOf(groupname)")

The workaround does not produce _any_ for _any_ groups here. Odd.

Was the bug fixed or a solution found? Using the query with "by membersOf(grouName)" I get completely wrong results. Is there another way to mimic the functionality of "inGroup groupName"?


No, as far as I recall we weren't able to reproduce this in our own environment.

@Mark McCormack [Adaptavist]: Update: Works for me now (with current ScriptRunner) smile


Thanks for the update, it's great to know it is working for you. Is that with the latest version of ScriptRunner compatible with JIRA 6.4.x (i.e version

so to clarify: issueFunction in workLogged('inGroup jira-developers") works but issueFunction in workLogged('inGroup <internal-group-name-goes-here>') does not.

Update: Works for me now (with current ScriptRunner and current JIRA) smile


JIRA: 7.0.5.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


198 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you