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

This widget could not be displayed.

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

This widget could not be displayed.

Klaus,

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"?

David,

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

Klaus,

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 4.1.3.7)?

This widget could not be displayed.

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

This widget could not be displayed.

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

 

ScriptRunner: 4.2.0.4
JIRA: 7.0.5.

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

524 views 3 19
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