I've added some user picker field for "people" to my team managed project. Now i would like to set the field value to some specific persion, as soon as i changed some other field (already works).
I already managed to set the field e.g. to the creator by using the following JSON in the field update action:
{
"update": {
"cust_people_fld": [{
"add": {"accountId": "{{triggerissue.creator.accountId}}}
]}
}
Now i want to set the field by some mail address "abc.xyz@123.com". How is this possible?
By just using the mail address I get the following error:
(Specify a valid value for customfield_10045 (customfield_10045))
Thanks a lot in advance.
Hello @Christoph Schnitzenbaumer
Welcome to the Atlassian community.
You cannot set the field to an email address. You must use the account ID for the Atlassian account associated with that email address.
Is that email address associated to an Atlassian Cloud Account?
Hey @Trudy Claspill
thanks a lot for you response. Yes the email address is associated to an Atlassian Cloud Account (and assigned to the project).
The user should just be some fixed value (based on some other change field). I tried aswell the user id (from the URL of the user), but no success.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Christoph Schnitzenbaumer
Thank you for the additional information.
Can you please show us the full Automation Rule and the details of the step where you are trying to add this user to the field?
Also please show us the information in the rule's Audit Log when that rule ran.
And lastly when you said "no success", what exactly was the result you observed? Was the field not updated? Was the field cleared? Was th wrong value added?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Trudy Claspill
thank a lot for the support and sorry for the inconvenience. I tried on an found some very helpful post (in the very end of the searchs) which leaded me to some solution:
{
"update": {
"cust_people_fld": [
{
"add": { "accountId" : "712020:87f95050-300b-465e-b25b-1ed65f577667"}
}
]
}
}
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.