Hi there, it is possible, but might be a bit tricky! Here is how to do it:
- Generate and prepare your Authorization TOKEN:
- Go to your Atlassian account (from Jira level, click on your avatar in top right corner, and select Manage account link).

- From top menu, select "Security", scroll down, and click on "Create and manage API tokens" link there

- Create a new TOKEN
IMPORTANT
Please note that a TOKEN, due to security reasons, can be valid for up to 1 year. After that time, you will need to generate a new one, and update your Jira Automation accordingly.
- Make sure to copy the value of your TOKEN somewhere, as it cannot be accessed again.
- Encode your <email>:<TOKEN> value into Base64 format, for that, I used this website called base64encode [dot] org (it seems I cannot link it here...)
Example of what to encode (do not add any " or spaces, just use your e-mail address from Atlassian, then : symbol, and Authorization TOKEN that you just generated):
info@example.com:TOKEN-VALUE-THAT-YOU-JUST-GENERATED
- After that, copy the result into a safe place, as we will need it for the next step. Please note that in the result, there should be no visible e-mail address or so, just a "random" string that is rather long.
- Find your URL:
- Identify your Jira instance URL, it will look similar to this, and we will need this <your_instance_name> part:
https://<your_instance_name>.atlassian.net
The simplest way to get that is to look at the URL of your Jira. In my example, my instance name is: "jiraxp".
- Identify the name of the User Group that you want to use for this automation, if you do not know for sure, go to Global Settings -> User management -> Groups and find the name.
IMPORTANT
I want this solution to work on free Jira instances too, not just the paid ones which support Project-level usergroups. This is why I am using here a global-level usergroups, not project-level usergroups!
In my example, my global user group name is: "confluence-users-jiraxp"
- Update the following URL with your jira instance name, and desired usergroup:
https://<your instance url>.atlassian.net/rest/api/3/group/member?groupname=<name of the global usergroup>
In my example, it becomes:
https://jiraxp.atlassian.net/rest/api/3/group/member?groupname=confluence-users-jiraxp
- Create your Jira Automation:
- This is how an example structure of your Jira Automation could look like:

- "Send web request" part:
- Web request URL: https://<your instance name>.atlassian.net/rest/api/3/group/member?groupname=<global usergroup>
In my example: https://jiraxp.atlassian.net/rest/api/3/group/member?groupname=confluence-users-jiraxp (do not use it, this URL will not work in your case, you need to use your instance name and user group!)
- HTTP method: GET
- Web request body: EMPTY
- Check / Enable checkbox: Delay execution of subsequent rule actions until we've received a response for this web request
- In Headers, you need one entry with:
- Key: Authorization
- Value: Basic <your prepared Authorization TOKEN from first step>
IMPORTANT:
The value of the "Value" field should include this "Basic" word at the front, then space, and then your prepared Authorization TOKEN.
- Here is a screenshot of how it looks on my end:

- "Create variable" part:
- Variable name: userstoassign
- Smart value: {{webResponse.body.values.accountId.join(",")}}
IMPORTANT
In Smart Value, do not forget about {{ and }} symbols, they are required to make it work. - This is how it looks like on my end:

- "Edit issue" part:
- Select the desired multi user field in "Choose fields to set..."
- In the value below, write {{userstoassign}} and select smart value option from dropdown:

- In the end, it should look like this:

And that's it! It might look complicated, but it is doable! Next, save the rule, turn it on, and test. In case it doesn't do what you want, check the audit log of that specific rule, it can point to where/why it breaks. For me, there were a few authentication issues, but following the steps above should precent that.
Cheers & Good luck!
EDIT: Removed links, as it seems to generate issues...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.