Forums

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

How do I assign a user to a User Picker (single user)?

Mithil Deshmukh August 26, 2021

Hello,

We have created a"User Picker" in our Jira tenant. We have a service to trigger issue creation. How do we assign an actual user to this field? We have the firstname, lastname and email available in our implementation.

Is there an email lookup , something like 

getUserByFullName("Jane Doe");

 

1 answer

0 votes
Kian Stack Mumo Systems
Community Champion
August 26, 2021

@Mithil Deshmukh

 

Are you talking about an external service to create the issue? If so, I'd recommend checking out endpoint. You'll need to look up the UUID of a user before you can use them in a JSON payload.

Mithil Deshmukh August 26, 2021

@Kian Stack Mumo Systems yes, we have our own warpper jira service that we use to create tickets based on our business need. Let me take a look at the end-point.

Thanks for the response.

Mithil Deshmukh August 27, 2021

@Kian Stack Mumo Systems looked into this and this is not what we are looking for. We need to populate a custom field (which is a user type field) with a value

e.g customfield_10077 =getUserByFullName("Jane Doe");

Kian Stack Mumo Systems
Community Champion
August 27, 2021

@Mithil Deshmukh

That end point is simply to get the UUID of the user by searching their display  name or email address.

Once you have that,  you can set the value of a custom field inside of the create issue endpoint.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events