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 ?

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

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

 

ScriptRunner: 4.2.0.4
JIRA: 7.0.5.

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

185 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