Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy all sorted data from Insight objects to a specific field

Josreny Botardo May 16, 2022

Incident Creation Screen:

In the incident generation screen, there are 2 Insight fields that are "Equipos" and "Sucursales" and 1 field called "Descripción".

 

Generate Ticket.png

Our need is that when the ticket is already generated, the data associated with the Insight assets "Equipos" and "Sucursales" are automatically pasted in the "Descripción" field, example in the "Equipos" objects we have the following data:

 

  Object.png

Ideally, both this data and the branch data can be contained within the "Descrición" field.

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Champion
May 16, 2022

Hi @Josreny Botardo 

Are you saying that you want to capture all of the attributes from the insight objects into the description?  If so, your automation would look something like this:

  • TRIGGER: Issue Created
  • ACTION: Edit Field (Description)
    You'll need to capture each attribute individually... something like this (assumes you are just appending to the original description):
    • {{issue.description}}

      {{issue.Equipos.Key}}

      {{issue.Equipos.idEquipo}}

      {{issue.Equipos.NSerie}}

      {{issue.Sucursales.attribute1}}

      {{issue.Sucursales.attribute2}}
Josreny Botardo May 17, 2022

Thank you very much for your valuable response, it has been of great help to me, the only doubt I have is that there is an object that has a blank space and when placing the code with the blank space, the data is not brought correctly, I show you in the example of the image

 

Blank.pngBlank2.png

Mark Segall
Community Champion
May 17, 2022

Hi @Josreny Botardo - You probably need quotes around that one:

{{issue."Tipo equipo".Name}}
Josreny Botardo May 17, 2022

I just made the change and the same thing happens, the value of the field appears blank

Mark Segall
Community Champion
May 17, 2022

Hmm... Does that insight object use "Name" or was that attribute renamed?  What happens if you do this?

{{issue."Tipo equipo".label}}
Josreny Botardo May 17, 2022

it still appears blank when placing
{{issue."Equipment type".label}}
The attribute is "Name" and the object is "Tipo equipo", the problem I see is in the blank space but I don't know how the syntax would be

Mark Segall
Community Champion
May 17, 2022

Oh... I just realized the problem.  You need to still call the original insight object:

{{issue.Equipos.Tipo equipo.Name}}
Josreny Botardo May 17, 2022

It's all ready now, the field brings the complete information, thank you very much dear your help has been extremely useful and very efficient

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events