How to assign a value to a UserPicker without knowing the id

Damien F
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2024

From a manual automation, I have a list type field with the first name and surname of the users (as it doesn't seem possible to use a UserPicker here). This values my smartvalue {{userInputs.test}}.

So I want to use this smartvalue to update a UserPicker field.

 

 

Thanks for any assistance.

1 answer

1 accepted

1 vote
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.
June 24, 2024

Hello @Damien F 

Welcome to the Atlassian community.

You could have the person triggering the rule set a User Picker field in the issue directly and then trigger the rule manually, or have the rule triggered automatically by the change in that User Picker field, and have the rule use that user picker field as needed.

You could create a Lookup Table within your Automation to match the manual trigger inputs to actual account IDs.

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-lookup-table

Another alternative is using a Send Web Request action to call the REST API to find the account ID associated with the user selected when the rule is triggered.

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Send-web-request

 

Damien F
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 25, 2024

OK, thank you, I was hoping for a more automatic solution than the table, but I'm going to go with this solution.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events