Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,316
Community Members
 
Community Events
165
Community Groups

How to update Insight custom fields based on the value change for a Insight custom field?

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

2 answers

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:

  • Trigger: Issue created or Field value changed (Employee Id) - the 2nd option will cover all possible events and can help you test the automation
  • Action Lookup objects:
    • select Schema in which the Employee Id and Name are stored.
    • use the syntax: Key = {{customfield_xxxxx}}
  • Optional Action: Log action
    • Employee Name = "{{lookupObjects.Employee.Name}}"

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).

  • Action Edit issue fields:
    • choose Employee name custom field.
    • operation Set query: syntax: Name = "{{lookupObjects.Employee.Name}}" (Employee is name is of the object where all attributes described above are stored, Name = attribute of the Employee).

I hope this will help you.

There are two types of rules:

  1. Insight object rules. These use the "When object changed" triggers.
  2. Issue rules. All other triggers.

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.

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

262 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you