Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to access users from the "group picker" field (for input to "for each" loop of a jira rule)?

Manju
Contributor
May 5, 2023

Hi everybody,

We want to loop through a list of Jira users in our automation rule and are using a custom field of type "Group picker (single group)" to use a jira group as the set of users (which will be used in our foreach loop).

I checked the REST API (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-group-member-get) as well as the common documentation and couldn't find an answer.
Is there any way to use a group as an input to a smart value in an automation rule to loop through the list of users (of that group)? If yes, how do I access this set of users?
From what I could see, I could only access the fields "name", "groupId" and "self" of my custom field "Group picker". How do I access the users of my group of this group picker field? Thanks in advance!

2 answers

0 votes
Manju
Contributor
October 7, 2024

Hi @Andre ,

That was quite some time ago when I posted that question. I had to do some digging into my old tickets to check how we managed the topic back then :D 

Summary:
I contacted the Jira support back then and they gave me the hint to use a webrequest. Back then there was no documentation by Jira, maybe know you are able to find some info on this?!

I attached 2 screenshots displaying the webrequest and how to access the content (users of the group) from the webresponse. Sensitive data I replaced by XXXX.

pic2.PNGpic3.PNG

 

Maybe you want to contact the Atlassian support as well? I hope it helps somehow! 

 

Andrea_Lawrence
Contributor
October 7, 2024

@Manju thanks for the screenshots. This is actually the path I was going down, but I wanted to check if there were better/simpler options.

0 votes
Andrea_Lawrence
Contributor
October 1, 2024

@Manju  did you ever figure this out?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events