Forums

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

Custome field and user id

Angie Villarreal-Midence July 25, 2023

If a custom field has the correct Account name, is there a way to pull the account ID of it? Example: {{Staff.accountid}} If the custom field is named STAFF and the name in the field correlates to an active user in Jira

1 answer

0 votes
Trudy Claspill
Community Champion
July 25, 2023

Hello @Angie Villarreal-Midence 

Is the custom field a User Picker field or a text field?

Angie Villarreal-Midence July 26, 2023

Its a text field

Trudy Claspill
Community Champion
July 26, 2023

The accountId property is valid only with User Picker fields.

I think you would have to use the Send Web Request action to call the Jira REST API to get the account that matches the text value you have and get the account ID from the output.

Looking at the API documentation the endpoint for getting a user account ID is listed as "experimental", but there might be another API endpoint that will work for you.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-bulk-migration-get

Suggest an answer

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

Atlassian Community Events