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,297,948
Community Members
 
Community Events
165
Community Groups

Populate Jira Custom Insight field with multiple objects through Jira Automation

I'm trying to fill two Jira Custom Insight Fields through Jira Automation. It works fine when I populate a custom field with a single object but I can't get it to work with multiple objects.

  • Custom field allows multiple values
  • Custom field is linked to the issue type and is visible and works through the UI

Attaching some pictures of the configuration.

Field configuration (devices)

Screen Shot 2022-05-18 at 21.15.03.png

 

Field configuration (users)

Screen Shot 2022-05-18 at 21.15.21.png

Jira Automation logs (final result is success). Each field returns de expected results

Screen Shot 2022-05-18 at 21.15.57.png

Automation step to create new ticket with data from parent + insight objects

Screen Shot 2022-05-18 at 21.16.13.png

Example of ticket created by automation. Description field gets values correctly but both insight object fields are not populated. Similar fields get assigned properly setting the value through the automation fields instead of the custom "additional fields" JSON.

Screen Shot 2022-05-18 at 21.16.40.png

 

Hope someone can help!

1 answer

1 accepted

5 votes
Answer accepted

Hi Jordi, 

I encountered a similar issue when trying to populate a Jira Insight object field with multiple values in an automation rule. When I tried to set the value of the Insight object field during the create issue action, the field would always remain empty. 

BUT the field would populate properly if I set the value of the Insight object field using an edit issue action after it was created. Give that a try and see if it works for you.

My situation is slightly different than yours so YMMV. On the edit issue action I chose the Insight object field and set the value using an IQL query, instead of setting the field value using lookupObjects and the "Additional fields" section. 

Also take a look at the examples found here, maybe they're what's needed to get the value set properly when setting it through the "Additional fields" section.

You are right Connor, thanks so much for the tips!!

It was easier than I thought... I got confused by the blue banner next to the fields and somehow I thought that I couldn't use this method to populate multiple values... I did now read it twice and give it a new try and worked perfectly!

Screen Shot 2022-05-18 at 23.32.34.png

 

Screen Shot 2022-05-18 at 23.36.25.png

I was able to do it within the issue creation field without an extra step (edit). I have a issue type edit step after the ticket creation anyway...

In your case maybe is because it doens't have the right issue/request type on the ticket creation and the fields you are trying to edit are not available yet?

In any case, thanks so much for your input here. I've been smashing my head against a wall for some good hours...

Like Connor likes this

Glad I could help Jordi, you might be right about the fields not on the creation screen I'll have to take another look at it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
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...

219 views 1 8
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