Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,917
Community Members
 
Community Events
176
Community Groups

How to get a accountId from a text user name in Jira automation

I have an external tool that maps a user's name into a text field.

I have a Jira Automation that triggers when that field changes. I now want to take that text field and find the accountId so I can populate another field that is a user field.

Is this possible?

Something like:

{
"fields": {
"Program Manager": { "id": "{{fieldChange.toAccountId}}" }
}
}

except that there is no function toAccountId that I am aware of.

1 answer

0 votes
Darryl Lee Community Leader Nov 26, 2022

Hey I realize this is definitely a late response @Alistair Adams but while looking for something related I recently found this excellent article that answers your question (which also came up in my search):

Populate a user picker field from the description field 

I hope it's not too late to still help!

This solution only works for Cloud users.

Darryl Lee Community Leader Dec 06, 2022

Hi @Derek Sheeman 

You're right. This question was tagged cloud, so that's what my answer covers. 

Would you want this for Server/Data Center? Are you using Automation?

In which case you should be able to replace the API endpoint in the Web request in the example with something like this:

https://YOURJIRASERVER/rest/api/latest/user/search?username={{username.urlEncode}}

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events