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,296,731
Community Members
 
Community Events
165
Community Groups

Copy all sorted data from Insight objects to a specific field

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 Leader 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}}

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 Leader May 17, 2022

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

{{issue."Tipo equipo".Name}}

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

Mark Segall Community Leader 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}}

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 Leader May 17, 2022

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

{{issue.Equipos.Tipo equipo.Name}}

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
Site Admin
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

328 views 0 10
Join discussion

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