I have a changes in my Jira cloud.
1) I have a 300 users in my Jir cloud, I need to update "Department Name" and "EMP ID"(DLT230) for all the existing users and new users automatically in user profiles.
2)If I get the Department name , need to list out all the employees based on department name in JQL.
1) The Jira REST API does allow for setting user properties that are only visible/usable (in Automation, for example) in Jira. Here's an example on Server:
And some information on doing it with Automation:
However, if you want to update the properties that appear in the User Directory (pictured below), that's a different API that uses different keys: https://developer.atlassian.com/cloud/admin/user-provisioning/rest/api-group-users/
(I think those are categorized as "legacy User properties")
2) Unfortunately JQL does not have access to either of these types of user properties. There are a feature requests related to this:
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events