Hello,
We need to read/ update the Insight custom fields (like name) based on the selection of unique identifier, namely id field. All these fields are attributes of the Insight object.
While creating automation in JSM cloud, the "Edit Issue" action throws the below error.
An error occurred while requesting remote information
Bad Request
No fields or field values to edit for issues (could be due to some field values not existing in a given project):
Any suggestion on how this can be achieved?
Thanks
Gaurav
You can try to use Lookup object action and after that Edit issue action and use smart values to populate the Insight custom field.
e.g.
User selects in customfield_xxxxx the value for Employee Id.
Automation configuration:
this action can help you identify the values that will be placed in the Insight customfield and troubleshoot erros (in case the values are not the ones you are expecting).
I hope this will help you.
Hi Razvan,
Your solution completely works. I just understand how to avoid Bad request error and want to add a few things in your solution.
If an object is already specified in a customfield, and it is wanted to add attributes of it in other customfields. We don't need to use lookupObjects for that case which will work but take more resource cost.
It works to only use the smartvalue below while editing asset object in Automation.
Name = "{{issue.fields.customfield_xxxx.Attribute Name.Name}}"
For an information: It is an object that's why unfortunately only providing the smart value below not working and causes Bad request error.
{{issue.fields.customfield_xxxx.Attribute Name.Name}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gaurav Gupta wondering if you were able to get this working. I am running into the same issue trying to use automation to populate a custom field with
an attribute value based on the selection in another field similar to what you have described.
Thank you, Chad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are two types of rules:
The "Edit issue" action cannot modify Insight object attributes. Use the "Edit object" action for the first type of rule. Use the "Edit Insight field attributes" for the second type of rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I do not want to update the Insight Object or attribute. The use case is:
1. User selects the Employee Id (Insight custom field on the create issue screen)
2. Issue is created with the Employee Id
3. The view issue screen has the Employee name field (Insight custom field) --> We need this field to auto-populate from the Insight schema based on the Id selected.
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.