Hi,
How to automatically add two users into a field of an issue - by using the Jira automation plugin? The field being of type “list of users”.
At present, the automation works well for one user, by using the “Edit issue fields” action and then by updating the given field (the “Add to existing values” box being checked).
I haven’t found a way to add two different users. Creating two “Edit issue fields” actions sequentially doesn’t seem to work (the last user only is added to the list).
Hello @pierre_gendre
Welcome to the Atlassian Community!
Per your description, I understand you are trying to copy all the users in the field "Access request for person" to "Request participants" when an issue is created, however, only the last user added in the "Access request for Person" is copied. Is that correct?
Performing a practical test in my own site, I was able to properly copy ALL the users configuring the same rule you did:
That being said, I suggest checking the following steps to troubleshoot it:
Let us know if you have any questions.
Hi Petter,
thank you for your answer. This is not exactly what I am trying to do.
Sorry, if I missed something. Let me explain it more accurately:
An issue of type T gets the following fields:
- name: "Teamlead" type: "User" (custom field)
- name: "Access request for person" type: "User" (custom field)
- name: "Request participants" type: "Set of Users"
The rule I'd like to implement is the following:
As soon as an issue of type T is created,
the "Teamlead" value AND the "Access request for person" value (of the given issue)
should be added into the "Request participants" field.
Best,
Pierre
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.
Hello @pierre_gendre
Thank you for your detailed information.
Now I understand you are trying to add users from two different custom fields to the "Request participants" field.
Indeed, adding values from two fields to a single one in the same rule will not work as expected, so you must re-fetch the issue before adding the value from the second custom field. Basically, you just need to add a re-fetch action before the second edit issue fields:
Additionally, make sure you have marked the flag to add to existing values.
Let us know if that worked for you.
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 are welcome @pierre_gendre
Have a nice day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Petter Gonçalves -- I'm not seeing a way to mark the flag to add to existing values for my multi-user picker field. Can you show where I would set it? Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bill Latham,
The option to flag a new option without excluding the previous flagged options from a user picker field can be selected if you select to copy the field from another field, as in the example above:
If you plan to add it without copying from other field, you can use the advanced field editing as described in this documentation. In the example below, consider "user.accountid" as the raw account id of the user you would like to add in the field:
{
"update": {
"custom user field": [{
"add": "user.accountid"
}]
}
}
Let us know if you have any questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks -- I was hoping there was a flag somewhere I was missing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.