Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Insight - CSV Import, Filter data source by IQL using Wildcard/Like

Edited

Hi,

I am importing a CSV into Insight and I want to split the contents into different object types.

For instance (CSV example):

name, db_version

db1, postgres_11

db2, postgres_12

db3, MSSQL_2003

The object types in my schema, in this case, would be PostgreSQL and MSSQL.

On the data import, I want to put anything that starts with postgres into the PostgreSQL Object type. I.e. I would like to utilise a 'like' operator with wildcards. 

However, I have trawled the internet and simply cannot find an explanation as to how this is done. I have tried the below:

db_version like "postgres"

db_version like "postgres%"

db_version like "postgres*"

db_version like postgres

db_version like postgres%

db_version like 'postgres'

db_version like 'postgres%'

db_version like 'postgres'

(each of the above variations have also been tried with LIKE)

Please note - The fields are configured correctly and if I input a specific version into the Filter data source by IQL section, for instance:

db_version = postgres_12

The results are as expected and any entry with that version will indeed go into the intended Object Type. 

Any assistance you can provide here would be greatly appreciated! 

Regards, 

Dave W 

 

 

 

 

 

1 answer

Hi 

I'm not 100% on that this solves the problem for you but I tested with this configuration and it seems to work fine. 

What is important to note is that the "Filter data source by IQL" is not run on the source columns but on Insight objects created during import. This means that you need to store the db_version into an attribute in the target object type - in my case I call it "DB version". 

In your case you may benefit to use inheritance to be sure your DB object types contain exactly the same attributes. 

pssql.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

638 views 5 12
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