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?
Hi Jeff,
did you try using the groupMembers filter as described here: https://innovalog.atlassian.net/wiki/spaces/JMWEC/pages/138405679/Custom+Nunjucks+filters#CustomNunjucksfilters-groupMembers ?
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Fischer , thank you for the JMWE-App!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.