Hi Community,
We're using Jira Service Management and would like to ensure data consistency in our Assets schema when capturing job role information during user onboarding. Here's our setup:
- We have a custom field named "Job Role" in our onboarding request form.
- In Assets, we created an object schema called "User Details", which includes an object type named "Job Role" with an attribute called "Name".
- Since we don’t have predefined HR roles, we want to dynamically populate the "Job Role" object in Assets based on the values entered in the custom field during onboarding.
- However, we want to avoid adding duplicates. If a job role already exists in the "Job Role" object (based on the "Name" attribute), we don't want to create it again.
Question:
How can we compare the custom field value from the form (i.e., "Job Role") with existing values in the "Name" attribute of the "Job Role" object type, and only add it to Assets if it's not already present?
Would this require an automation rule, a custom script, or an integration with Automation for Jira or Insight APIs? Any examples or recommendations would be appreciated.
Thanks!