The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

4 votes
Answer accepted
Trudy P Claspill
Community Champion
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 P 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 P Claspill
Community Champion
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 P 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 P Claspill likes this
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events