Hello Community,
I have a "schema A" in Insight, where objects of a certain object type are linked to services from the "Services" schema. I want to display certain attributes of these objects from the schema A to the agent based on the value of the service selected under the "Affected Services" field (which is by default linked to the Services).
Can someone please tell me how to achieve this?
Thanks & Regards,
Aman
Hi @Aman I responded in your related question: https://community.atlassian.com/t5/Jira-Service-Management/Can-only-service-schema-be-linked-to-OpsGenie/qaq-p/1745402
I'll further add to the answer there:
I really don't like manipulating Insight objects based on the {{issue.affectedServices}} smart Value. You can't access the Service ID smart value properly.
eg. {{issue.affectedServices.serviceId}} returns:
b:YXJpOmNsb3VkOmdyYXBoOjpzZXJ2aWNlLzI3ZWY0OTk1L<snip>1LWYwYzk0ZmY1YmViNy9lODNkYjc4MC1kZTJiLTExZWItYmIzZi0wYWJlM2Y0YTY2MDE=
This is a Base64 encoded value for the actual service ID, which you can access from the Services schema with a Service Object insight custom field:
ari:cloud:graph::service/27ef4995-3488-4050-aba5-f9<snip>eb7/e83db780-de2b-11eb-bb3f-0a<snip>01
Automation doesn't support decoding Base64 values. So you can't look up objects in Insight Services schema based on the Service ID.
As a workaround, you can use {{issue.affectedServices.name}}. This will match a Service in the Services schema. So if you want to show information from a custom schema linking to an object, presuming your objects' Service attribute is called Service, you can use in a Lookup Object action:
Service IN ({{issue.affectedServices.name.asJsonString.join(",")}})
I actually used this recently in a Canned Response implementation in Insight.
Insight Object Type: Canned Response
I added the Operation Insight object custom field as a hidden field on request forms and then used this automation:
Hope that helps, Insight Cloud with Jira Automation is really, really powerful!
This helps!!!
Thanks @Alex van Vucht (GLiNTECH) for your guidance on both my questions. It has indeed helped us a lot.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Aman -
When you created custom field in Jira/JSM based on your Insight Schema object, you can display the attributes associated with your object using the "Configure Insight Custom Field" UI (NOTE - this is available when you setup your custom field for Jira/JSM)
I am assuming that you have Jira/JSM administrators rights to access the JIR Administration UI > Issues > Custom Fields.
Hope this helps.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Infrastructure Applications Team
Viasat Inc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply, unfortunately I believe you have misunderstood my issue.
I'll try to explain it in more detail for you.
Since the services schema is only a read only, we have created a custom schema (schema A) that has services and their information, and is also linked to the original services schema.
We are trying to create an automation where whenever the value for "Affected service" (this field is by default linked with the services schema) is updated, the linked service in the Schema A is updated, so that we can have all the details regarding the service in the issue view.
However, we are having issues implementing this automation, and only works when we hardcode it.
Let me know if there's any more information you need to help.
Thanks & Regards,
Aman
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.