In documentation https://documentation.riada.se/insight/latest/insight-manager-s-guide/import-and-synchronization/general-import-concepts under Import Attribute there is "concept" Regular Expression. What is "concept"? Where is the field inside import where I can enter regular expression?
It says "You can use regular expressions to edit the value from the import source." and goes on with examples and all. But it doesn't say where.
Please help.
Hi Sanja,
Look at the attached screenshots, click on the cogwheel to open the configure, and there you have the regular expression :)
OK. (It would be nice if that detail was mentioned in documentation.)
I added custom attribute and I used Regular expression (\w*)\W and it works.
But when I look configuration, it is nowhere to be seen that I used it
Now I only need information what to put into Regular expression to get text, for exampe "HMC scan".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanja,
What do you mean with
it is nowhere to be seen that I used it
Regarding using regular espressions we recommend the documentation at https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html for more information on how to build the regex, and personally, I try to use https://regexr.com/ when I want to test the result.
Best Regards
Alexander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexander,
Sorry, by "nowhere" I mean the input configuration. With or without regular expression, it looks the same. It should be visible whether a regular expression is used or not on that attribute.
I am trying to find the function that returns text string (constant), but I can't find it. Please help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you investigate the insight_import.log that's in the JIRA Home directory, you'll see that regex has been applied.
It's not possible to use regex to replace with a default value, regex can only alter the value that you inputed. As such, you would have to use automation rules to add a default value, like mentioned in another community question.
Best Regards
Alexander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.