Assign a group to Request Participants

Deleted user January 3, 2018

I want to assign an entire group to the request participants field for Jira Cloud after the ticket is approved. The field won't accept a group, so I am attempting to use the "Set field value (JMWE add-on)" to pull the list of names from the group and add them to the field. I cannot get Nunjucks to pull a list from the group though. Any suggestions on how to get a group into the request participants field?

1 answer

1 accepted

2 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 3, 2018
Deleted user January 4, 2018

This works great, thank you. It only returns 50 users, and the group is just over 100, do you know of a way to select all users, or even (1st 50) (2nd 50) so I can make multiple post functions to achieve these results?

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 4, 2018

That's right, it's a current limitation of the groupMembers filter (related to a Jira REST API limitation).

I have created https://innovalog.atlassian.net/browse/MWEC-238 to track this improvement request. Hopefully we'll be able to deliver this change in the not too distant future.

JiraYo
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.
March 22, 2019

this sounds like EXACTLY what i need. I want to take active directory groups and use them in the "request participants" field, however i dont know wtf you mean by nunjuks. I looked at the FAQ. Is this only available for JMWE cloud version? becuase i try typing this in as a groovy expression and it does not work.

 

how do i add the code such as below to a "set field value" workflow event?

grrovy.png

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 22, 2019

Well, if you look at the original question to which I answered, you'll notice Jeff said he was on Jira Cloud

On Jira Server, you are right, you need a Groovy expression. Here it is:

ComponentAccessor.groupManager.getUsersInGroup("administrators")
Like Alexander Bondarev likes this
JiraYo
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.
March 25, 2019

appears to work, but i tried several ways to use two groups and cant make it work. how do i join two array results?

 

and where did you get that command from? is there a reference somewhere that i can just consult?

Alexander Bondarev
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.
February 19, 2020

@David Fischer , thank you for the JMWE-App! 

Ymen Hdiguellou February 9, 2023

Hi @JiraYo i have the same problem, did u resolve it? If so What did u write as json?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events