Hi!
Is it possible to create automation or any other solution to schema like I need copy asset attribute value ( like Serial Number ) from insight to custom field in jira?
1. When Create issue
2. Have custom field in issue for asset like this:
3. Automation copy value of attribute "Serial Number" From Object "LAPTOP" and insight name "RZM ASSETS" of reporter issue to custom field "Komputer" in Jira issue
Tried many times but cant or don't know how to put value of attributes from object in insight to custom field in jira
Hi @Piotr Mańkowski,
Welcome to Atlassian Community!
Yes, it is possible to copy attributes from an object to a custom field if needed. But you could also use the assets field, which Komputer is, and configure it to show more data then just the name of the object.
Thank you for quick reply. I know i can configure this field for more values but could you prepare or show me how to create automation which copy value to this field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's an example that gets approvers from our Peoples schema.
All you have to do is a lookup object and then use that to get the attributes you are looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mikael Sandberg still have error :(
could you build new automation with these parameters?
Schema: RZM ASSETS
Query: LAPTOP
Attributes: Serial Number
Put Serial Number value to custom asset field "Komputer" in Issue ( from Reporter )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The error indicate that your AQL is not configured the right way, what does it look like?
Based on the info you provided above the AQL would look something like this:
objectType = LAPTOP AND "Serial Number" LIKE (<enter the number here>)
Where are you getting the serial number from? Is that on the request form? If you for example wanted to get the laptop for the reporter the AQL would look something like this:
objectType = LAPTOP AND Owner = {{issue.reporter}}
This assumes that the Owner attribute is set to user type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mikael SandbergStill can't do that or maybe i have incorrect config of AQL.
This is my automation -> We need copy from insight serial number of laptop which is assign for issue reporter and put into field "Komputer" ( could you give me correct value in automation? )
Issue with custom field (maybe i need to switch for text field not insight field?) and parameters
Insight fields and value:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, based on your screenshot for the lookup component the AQL is incomplete. So lets start there. Is serial number entered when the request is created? Or is your only reference to the object the reporter? Since Komputer is an asset object field you do not have to do a lookup, you can just use the edit issue component in order to set it like this:
This will set Komputer to all the objects that are found in the LAPTOP object type where the assigned to corresponds to the reporter. That way you cover the scenario where the reporter has multiple laptops.
You only have to do the lookup object if you would extract data from the object and use that in a field that is not an asset object or if you are doing other things based on the attributes of the object. One example of this is how I use department objects in order to set the approvers field based on the selected department (department is a custom single select field).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is serial number entered when the request is created? // Nope, i wanna be set up this later.
This will set Komputer to all the objects that are found in the LAPTOP object type where the assigned to corresponds to the reporter. That way you cover the scenario where the reporter has multiple laptops.
You only have to do the lookup object if you would extract data from the object and use that in a field that is not an asset object or if you are doing other things based on the attributes of the object. One example of this is how I use department objects in order to set the approvers field based on the selected department (department is a custom single select field). // Seems legit but still have error :( could you prepare this automation from the start to end with screenshots of field (standard not insight as u said )and insight?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So for the scenario when you set the asset object field the previous screenshot covers that, just add the initial trigger which could be when the issue is created. For the case when you are copying attributes to a text field, in this case I am using the description field, it would look something like this:
Note that I am using a global smart value in order to cover the case where the reporter has multiple assets assigned to them. If they are only assigned to a single one then the branch is not needed and you could just use {{lookupObjects."Serial number"}} to set the custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.