Update parameters of the Set a field as a function of other fields Function for this transition.

Issue #101 closed
S created an issue

Hi, \Update parameters of the Set a field as a function of other fields Function for this transition.is not working for the following select list values.


Settings Rule:

1.(Maintenance / Bug Fixes)Deliver the Service 2.(Procure-to-Pay)Supplier Collaboration 3.(PM-Driven Improvements)Incremental Improvements

Comments (27)

  1. Fidel Castro Armario repo owner

    Hi Suresh,

    Can you please attach a screenshot with the configuration of the post-function?

    Thanks

  2. Fidel Castro Armario repo owner

    Can you please attach a screenshot of the whole post-function tab of the transition?

    Which type of custom fields are Driver Category, Driver, Product Suite and Product Line?

  3. Fidel Castro Armario repo owner

    Please, try moving post-function "Creates the issue originally" to first position in execution order.

  4. S reporter

    I moved it,But not working.

    The problem we are facing with / ,- ,&,( ,.....symbols in the string ,mapping rules.

    The string which is not contains special symbols we are not facing issues. It is working fine as excepted.

  5. Fidel Castro Armario repo owner

    Characters / , - and & , shouldn't cause any problem, since they don't have any special meaning in regular expressions. Indeed I have tried to reproduce your problem with these characters, and it works correctly in my JIRA instance.

    On the other hand, characters ( and ), as other ones (like \, [, ], etc) are reserved, and must be escaped using character \.

    Anyway, I suggest you to try escaping all the characters you are experiencing problems with, i.e., rewrite your setting rules as follow:

    (Maintenance \/ Bug Fixes)Deliver the Service

    (Procure\-to\-Pay)Supplier Collaboration

    (PM\-Driven Improvements)Incremental Improvements

  6. S reporter

    Hi Fidel, I have changed the same(escaping all the characters ) but not getting in result after create postfunction. we are 6.3.8 Jira version. I am confusing here.

  7. Fidel Castro Armario repo owner

    I don't know the cause of the problem, but as a workaround, replace the conflicting characters with character '.', which represents any character (in regular expressions), i.e, rewrite your rules as follow:

    (Maintenance . Bug Fixes)Deliver the Service

    (Procure.to.Pay)Supplier Collaboration

    (PM.Driven Improvements)Incremental Improvements

  8. Fidel Castro Armario repo owner

    Let's try a last resource workaround. Try rewriting your conflicting rules as follows:

    [%{nnnnn} = "Maintenance / Bug Fixes"]Deliver the Service

    [%{nnnnn} = "Procure-to-Pay"]Supplier Collaboration

    [%{nnnnn} = "PM-Driven Improvements"]Incremental Improvements

    with %{nnnnn] being the field code of custom fields Product Line or Driver depending on the particular setting rule.

    I advice you to update to version 2.1.25 of JIRA Workflow Toolbox, since that version provides support for UNICODE string literals, and I think that your problem may be caused by a bug related with your particular system encoding.

  9. Fidel Castro Armario repo owner

    Please, tell me the following information of your configuration system configuration (Administration > System > System Info):

    • System Encoding
    • webwork.i18n.encoding
    • file.encoding.pkg
    • sun.io.unicode.encoding
    • sun.jnu.encoding
  10. Fidel Castro Armario repo owner

    Please, try the following setting rules:

    (Maintenance .* Bug Fixes)Deliver the Service

    (Procure.*to.*Pay)Supplier Collaboration

    (PM.*Driven Improvements)Incremental Improvements

  11. S reporter

    System Encoding :Cp1252 webwork.i18n.encoding:UTF-8 file.encoding.pkg :sun.io sun.io.unicode.encoding:UnicodeLittle sun.jnu.encoding :Cp1252

  12. Fidel Castro Armario repo owner

    I have set up a Windows virtual machine with system encoding Cp1252, and also it's working correctly for me. I can't manage to reproduce your problem.

    Please, try the following setting rules:

    (^Maintenance.*)Deliver the Service

    (^Procure.*)Supplier Collaboration

    (^PM.*)Incremental Improvements

  13. S reporter

    can it cause with the select list options?even after removing of -,(,/ from the select list option it is not working.

  14. Fidel Castro Armario repo owner

    It should work correctly with any Select List custom field.

    Perhaps, you created the options using copy+paste from a document, and there is some strange character inserted in the string.

    Can you please, edit the option to something like "A" and save, and then edit the option again and typewrite by hand the correct name again?

    You may also execute the Integrity Checker available at JIRA Administration.

  15. Fidel Castro Armario repo owner

    Suresh, I close the issue after 20 days without any update. Please, reopen it if you keep needing support.

  16. Log in to comment