Forums

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

Creating custom field with values from Project Role members

Alexander Wildes Jr February 7, 2023

Hello everyone,

 

I am hoping to create Jira custom field in which ticket creators can choose a member within a project role .. for example.. the Custom field is called Project Managers.. this field will be a Single Select dropdown list. I would like the list to automatically pull from a Project Role member list.  in this case I have a project role called Project Managers with added users.  

Thank you

Always
Alex

2 answers

1 accepted

0 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.
February 7, 2023

You cannot link a custom field to a project role, so the only way of doing this would be to use the REST API. You would first have to get project roles for the project, then get the specific role in order to get the members of that role. Once you have that then you can update custom field options.

Please note that this would only work if all projects that are using these custom fields have the same people in the different roles, or you may end up with names in the list that do not have access to the specific project. 

Alexander Wildes Jr February 7, 2023

Thank you Mikael... this helps.  In this case.. the Project Role is only specific to ONE project.. Consequently, the custom fields will only be used in this one project. and the users will have access to this project.  This may be an option.. Thank you for your insight! I truly appreciate it. 

Alexander Wildes Jr February 7, 2023

One last question along these very same lines,

Using Automation, can I automatically assign a ticket to a user whose name is populated in a custom field... for example...  When the status of an issue ticket goes to status called Release Manager Review, can I auto assign the ticket with value of the user listed in the Release Manager Reviewer custom field.

 

Thanks again

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.
February 7, 2023

Yes, that is possible, and it is easier if the custom field is a user picker field instead of a text field. If the custom field is the latter you would need to get the AtlassianId for that user first.

0 votes
Fazila Ashraf
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2023

Hi @Alexander Wildes Jr 

If you are using a user picker field instead of select list, you can apply a filter to limit the users for members of a role.

https://jira.atlassian.com/browse/JRACLOUD-7659 

Alexander Wildes Jr February 8, 2023

Hi Fazila
This is helpful, however this assumes that a ticket reporter/editor will need to have prior knowledge of any given project role member.   The user picker is still not a drop down list of values.

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