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,365,056
Community Members
 
Community Events
168
Community Groups

How to populate an Insight object custom field using automation?

Edited

We've recently completed a migration from Jira Server to Cloud. We have established separate object types for Departments and Applications, created Insight custom fields intended to house each, and have made those fields visible on the screens where we need them. The problem seems to be assigning values to those fields within automation.

At the moment, my understanding is that if I enter an IQL query in the field assignment box, whichever object is returned by that query should be assigned to the field. 

JiraCloudRelatedDeptsIQL.png

I'm not sure if my syntax is incorrect or what, but regardless of what I type in the field assignment box, Jira throws an error "An unknown error has occurred. Please reload and try again." Reloading has no discernable effect.

JiraCloudIQLError.png

I can manually select objects when interacting with those Insight custom fields on an issue edit/view screen, so I know the filter scope is correct.

Any advice on how to address this?

2 answers

1 accepted

2 votes
Answer accepted

Hi Matt,

 

The "Validate syntax" function throws an error even when the syntax is ok.

 

Discard this and save. It should be good.

 

PO Tremblay

FMX Solutions - Gold solution partner

Thanks @Pier-Olivier Tremblay , this was the trick. I hadn't attempted to run the rule on account of the error. Removing the objectType component that @Mikael Sandberg mentioned, such that the IQL query was only 'Name LIKE "department name"', did get it working.

Like # people like this
0 votes
Mikael Sandberg Community Leader Sep 12, 2022

If you remove objectType from your query and only using Name, does that 

work? Normally the objectType has already been associated with the custom field so you do not have to add that in the IQL.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS

Atlassian Community Events