Forums

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

Insights: Automating assigning one object to another

sev hewitt
December 9, 2022

I am using Jira insights in part as an asset register.

I have a list of user objects and asset objects created via an import from Microsoft Intune

I need to be able to automate the process of "assigning" the assets to the users

My current plan is to use data from the imported asset (the email address associated with the laptop/phone) and match it up to my user objects to set an attribute of the imported asset to contain the correct user object as a reference. 

the email addresses are configured to be Firstname.Lastname@mycompnay.com

the user objects are configured to be Firstname.Lastname

Is this possible?

What ways can I accomplish this if so?

1 answer

0 votes
Nader Youssef
Community Champion
December 12, 2022

Hi Sev!

The users in Jira cloud are a bit different than server. If you wish to import assets and assign them automatically to users you should use the user account ID instead of their names as pointed out in the import documentation. This is part of the data preparation for the import to work correctly. Then you will get a jira user assigned to each asset which you can link to the user object.

You can use this rest endpoint to fetch the account IDs of your users and then match the users with their respective email addresses.

Another way is to add the account IDs to the users object and then match it to each asset respectively. However, this way the auto assignment in issues will not work as you wish since the user object cannot be validated against a jira user when they wish to report an issue to their assigned asset objects.

I would recommend this guide for best practices on how to associate objects to Jira issues

Cheers!

Nader

Suggest an answer

Log in or Sign up to answer