Condition based on regular expression

Issue #328 resolved
FatimaM created an issue

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)

  1. Fidel Castro Armario repo owner

    Hi Fatima,

    In order to check for a value containing number 00226, you should use the following regular expression:

    .*00226.*
    

    Don't add double quotes to the regular expression.

  2. Fidel Castro Armario 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.

  3. Fidel Castro Armario 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?

  4. Fidel Castro Armario 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?

  5. Fidel Castro Armario 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.

  6. Fidel Castro Armario 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:

    1. 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

    2. Execute transition with post-function "Copy a parsed text to a field" for creating a comment with the value of the field HR Code.

    3. 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.

  7. Fidel Castro Armario repo owner

    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.

  8. Log in to comment