How can I convert a string to an Atlassian user account? Select List to an Atlassian user account?

Tyler Giles
Contributor
August 14, 2024

We have about 70 users in Atlassian, but I am working on a project that can only be "approved" by 2 people. John Doe and Jane Doe.

It appears that JSM has no functionality to have a custom field only able to select from a few individuals or group at all, which I think is highly strange and would be useful for many projects. I can only use fields that let users pick from all ~70 users, or I can create a drop down or radio buttons, but this only sends the user as a string. I want to take the string "John Doe" and then assign the ticket to Atlassian User: John Doe.

Simple example: customfield_1 = Select List > "Jane Doe" selected
Automation: Assign Ticket to customfield_1 (Jane Doe)

I do not want to use a "user picker" field, and then giving end users ~68 other options that they would only accidentally pick.

2 answers

1 accepted

4 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 14, 2024

If you are using a single user picker custom field you can limit it so you can only select users that belongs to a specific group. You could then use that as the field as the approver.

Screenshot 2024-08-14 at 12.03.33 PM.png

All you would have to do is create a new group that only have the two approvers in it.

Tyler Giles
Contributor
August 14, 2024

This works perfectly for what I am trying to do, thank you!

Like # people like this
0 votes
František Špaček _MoroSystems_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2024

Hi @Tyler Giles ,

 

first and foremost I am not sure how you would like the process to look like, so pardon me for making guesses and maybe some tips will be a bit different.

 

From what I understand you are trying to get approvals for your tickets - Jira Service Management has built in functionality just for that. Follow the instructions here if you want to tryto use it.

 

Now to answer your question - if you have single user picker field, just go to "Custom Fields" system settings, find your custom field and via three dots hit "Context and default value" and here you can set up user to be selected from either project role or group. Also this can nicely be combined directly with the Approval workflow stated earlier.

Suggest an answer

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

Atlassian Community Events