Condition based on regular expression
Hi Fidel
For comparison we use field HR code -which is IN-tenso plugin vendor type.It gets value from Active Directory.We want to use value in this field to compare and to allow transition or not.The value of this field is not only number fields,also keep some atrributes. Which expression we can use to set in Regular expression,so it checks only for matching the number value.For example %00226% so any symbol could be in right and left side
Comments (14)
-
repo owner -
reporter Hi Fidel
It does not work,may be to check matching for text value?
-
repo owner Can you please use "Copy a parsed text to a field" post-function in order to check the value that actually has HR_Code field. To do it use the following configuration:
- Target field: New comment
- Parsing mode: basic
- Text to be parsed: %{nnnnn]
replacing nnnnn with the field code of HR_Code custom field.
Please, execute the post-function and tell me the content of the comment that will be automatically created.
-
reporter Hi Fidel
Pls. look at attachment
Everything is clear now
-
repo owner The comment created seems to contain only a dot. Was HR_Code field set when you executed the transition for creating the comment?
-
reporter It is the field of In-tenso plugin See attachment for configuration of this field
-
repo owner I thought you are using Active Directory Attributes Sync add-on, but I don't find the configuration screen you show in your last screenshot. Can you please tell me which add-on are you using?
-
reporter Yes exactly this add-on
-
repo owner I don't find the "Edit user from AD" that you show in your screenshot. In plugin's documentation there isn't also any information of that.
Can you please show the field configuration screen?
-
reporter Fidel this Edit screen appears when we configure this field
-
repo owner Can you please show me how the field is seen in a real issue detail screen? I would like to see some examples of real values.
-
reporter -
repo owner Fatima, I can't reproduce your configuration since I don't have an Active Directory available, but I can get some useful information from your server's log file. I need you to do the following:
-
Set logging level for package com.fca.jira.plugins.workflowToolbox to DEBUG. You can do it at Administration > Logging and profiling > Configure logging level for another package
-
Execute transition with post-function "Copy a parsed text to a field" for creating a comment with the value of the field HR Code.
-
Share your server's log file with me, or the part relative to the execution of post-function "Copy a parsed text to a field". You can send it to support@workflowarts.com.
-
-
repo owner - changed status to resolved
Fatima, I close the issue, since there isn't any news from you in 2 weeks. Please, reopen it if you keep having problems with it.
- Log in to comment
Hi Fatima,
In order to check for a value containing number 00226, you should use the following regular expression:
Don't add double quotes to the regular expression.