I'm evaluating JSM premium because of the use of the assets application. I need to do the following, and am wondering if I need to involve automation to complete the task.
In assets
I have an object with the following attributes:
Name
component reference
In JSM
Asset Custom field-Client information
Filter scope is my Assets Object type-"clients"
In Automation: A client creates a JSM ticket and is assigned a component value given their existing customer information
Ask/Pseudocode:
I want JSM to automatically pull the object into JSM where component in jsm matches the attribute component reference in Assets.
I can currently manually search for objects within JSM, but I'm not seeing the action for this in the custom field, or JSM. I'm assuming this has to be done in automation. Is that correct?
Correct, you have to do it using automation. Here is an example where the linked assets is populated with the reporter's assets when a request is created.
Thank you Michael, If I'm just querying via components does this make sense?
"Name" = "{{components}}"
Name is the attribute in assets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works but it's hardcoding the reference:
"Name" = clientname
None of these work though. Am I supposed to use a smart value? What documentation are you referencing for this?
"Name" = "{{Components}}"
"Name" = "{{issue.Components}}"
"Name" = "{Components}"
"Name" = Components
I keep getting this error:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use "Name" = {{issue.components.name}} instead, otherwise components would come back with the internal number instead of the display name. And to cover the situation where you have multiple components on the request you should use this one instead:
"Name" in ({{issue.components.name}})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Mikael this is right on. I just added a print statement when you sent the note about adding the .name to the query. I had no idea that components were organized numerically and understand why assets would've missed the reference by being sent a number value. This gets me off and running. Do you have any recommended documentation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I reference Smart values in Jira automations a lot, and from time to time I end up in the automation template library.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.