Automation for Jira: Updating User picker field "People" in Team managed project by Mail

Christoph Schnitzenbaumer December 5, 2024

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.

1 answer

1 accepted

4 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 5, 2024

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?

Christoph Schnitzenbaumer December 5, 2024

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.

 

accountId.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 5, 2024

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?

Christoph Schnitzenbaumer December 5, 2024

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"}
}
]
}
}

 

Like Trudy Claspill likes this

Suggest an answer

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

Atlassian Community Events