Get assets during off-boarding
Asked by Greg:

We use Jira Assets to track hardware and software associated to each employee. I was wondering if there is a way to list out any assets an employee holds during an off-boarding process.

Ideal workflow:

* An employee's manager submits an off-boarding form to HR listing the employees name and final day.
* This HR form is used to trigger a new IT request (Task) which lists out the assets associated with the employee, allowing them to perform the off-boarding tasks required (application/software account removal, etc).

So far I've been able to create the HR Form and associate the Employee Name field with the Asset Object that is the employee. This allows the Asset (Employee) to display within the Details section of the request. It also provides a link to view the Object Details, which contains the information I'm looking for (Software accounts).

Two things:

I would like to pull the name of the Employee (asset) to display in the Description field. When using {{Employee Name}} to call the asset, I can only display the Object ID, but not the actual name of the Object.

Also, is there a way to list specific attribute(s) from the asset when it is referenced.

* For example, in the Description of the IT Request opened by Automation, a list of Software Accounts (the attribute) is displayed based on the Employee (the asset) being off-boarded.

![offboardingRequest.png](/t5/image/serverpage/image-id/307544i6CAABEE4F6D6A417/image-size/large?v=v2&px=999 "offboardingRequest.png")![objectDetails.png](/t5/image/serverpage/image-id/307545iBDC7325DC9D414EB/image-size/large?v=v2&px=999 "objectDetails.png")![objectID.png](/t5/image/serverpage/image-id/307546iA2FC34A48E073AF1/image-size/large?v=v2&px=999 "objectID.png")


Answers:
author: Mikael Sandberg
body: In order to get the name for the asset you need to use the attribute name in your [smart value](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/). Assuming that the name of the employee is the Name attribute then {{Employee Name.Name}} would give you that.

Regarding the question regarding Software accounts, yes that is possible. All you would have to do is use the Lookup objects component and the query would be something like: Owner LIKE {{Employee Name.Name}}

You could also use just the object key for the owner, then the query looks like this:

Owner LIKE {{Employee Name}}

You can then use the [{{lookupObjects}}](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/#Lookup-objects) and the list function to add it to the description field.

comments: author: Greg
body: Thank you so much. I was able to successfully have the name added to the Description field. I really appreciate your help.

However, I simply cannot get the Software attribute to populate - either in the Details or Description based on the suggestions you provided. I am absolutely stumped on how to get the Software Accounts associated with the Employee to display in a request created by Automation. I'm wondering if I configured the Custom Field incorrectly for my desired outcome.

![offboardingRule.png](https://community.atlassian.com/t5/image/serverpage/image-id/307617iFB9F1F3B69F81FD9/image-size/large?v=v2&px=999 "offboardingRule.png")

![customField.png](https://community.atlassian.com/t5/image/serverpage/image-id/307619i13403C9CCBBE191C/image-size/large?v=v2&px=999 "customField.png")


author: Greg
body: An update for anyone reading:

Sometimes it helps to take a break. Go back after a day of staring at something and notice the most obvious things.

I was able to display the Software Accounts within the Description field, by adding the "Software Accounts" attribute to the Employee Name custom field.

One strange thing I can't figure out though is why the results are appearing in brackets - \[example, next example\].

Also still can't get the Software custom field to display on the request. I've put in every value I could thing of or found online, and it just won't display anything.

![employeeNameCustomField.png](https://community.atlassian.com/t5/image/serverpage/image-id/308261iF5ECFC7782F483FC/image-size/large?v=v2&px=999 "employeeNameCustomField.png")![automationRule.png](https://community.atlassian.com/t5/image/serverpage/image-id/308262i7E865F0CDE243AED/image-size/large?v=v2&px=999 "automationRule.png")![request.png](https://community.atlassian.com/t5/image/serverpage/image-id/308263iB4F87CDD9E1B9165/image-size/large?v=v2&px=999 "request.png")


Tags: assets

cloud

jira-service-management

jira-service-management-cloud