Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,361
Community Members
 
Community Events
165
Community Groups

Assigned to my group - custom JQL function

Assignment group insight custom field has been added for the purpose to be able to assign issue to a group. Available assignment groups (insight objects/attributes) can be arbitrarily filtered (limited "dropdown" list) according to the type of issue or any other issue field value (Service, Category, Area, Location, etc.). Related insight object (Group) also contains Group Members attribute that is populated from JIRA user directory. Members of selected group are automatically copied to Assignment group members issue custom field (listener) whenever issue Assignment group changes. They become directly available in the issue record and are, f.e. used to limit Assignee selection (permissions: Assignable user - User custom field value = Assignment group members). All this works fine.

Now ... I would need a query (optional, custom JQL function) to return Issues assigned to my group ... assigned to group(s) in which I, as a logged in user, am a member of. Since members are already copied in issue, the query could look something like:

loggedInUser() IN "Assignment group members"

How can I do that ... custom JQL function ... other solution?

              ... I learn Groovy from examples, error messages and mistakes ...

Regards, Marjan

1 answer

After some testing ... I tried to get a list of Groups for loggedInUser and compare it to issue.AssignmentGroup, which should be ok:  cf[12345] in myAssignmentGroups()

 

But ... custom JQL function (getValue) returns a list of values: [group1(key1), group2(key2)] 

This list can not be used since expected list is ("group1(key1)", "group2(key2)")

Any suggestion?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

273 views 2 9
Read article

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