Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,555,661
Community Members
 
Community Events
184
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

3 answers

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

0 votes
Alex van Vucht (GLiNTECH)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 10, 2021

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
AUG Leaders

Atlassian Community Events