Universal validator not working

Issue #584 resolved
Beth Starr created an issue

I set up a universal validator to check who an initial approver was (written to a custom field) and if the value in that field is the same as the current user logged in the the transition step should be prevented and an error should be displayed. I have this validator in one part of the workflow and it works fine, but when I try to use this same validator in another part of the workflow it does not work and the same person can approve in both the initial approval step and the secondary approval step. I am trying to use the validator- {Initial Approver}!=[user] =true. Error is Primary and Secondary approvers cannot be the same. Why will it work once, but when I try to use the same validator in another part of the workflow it will not work?

Comments (11)

  1. Beth Starr reporter

    So Sorry. Thanks for the information I will try your suggestion.

    Thanks! Beth Starr, CSM Atlassian Systems Consultant Mobile – 740-222-1514

    [BMC-RS logo]

    RightStar 1951 Kidwell Avenue, Suite #110 Vienna, VA 22182

  2. Beth Starr reporter

    I tried using the Boolean expression and it still is not working. No error is displayed if the initial approver and the current user are the same person. Any suggestions?

    [cid:image007.jpg@01D2BAB5.4728AA60] [cid:image008.jpg@01D2BAB5.4728AA60]

    Thanks! Beth Starr, CSM Atlassian Systems Consultant Mobile – 740-222-1514

    [BMC-RS logo]

    RightStar 1951 Kidwell Avenue, Suite #110 Vienna, VA 22182

  3. Fidel Castro Armario repo owner

    No images hasn't been actually attached to the issue.

    Please, attach a screenshot showing the validation's tab of the transition where you have inserted the validation.

    Which type of custom field is Initial Approver?

  4. Fidel Castro Armario repo owner

    Hi Beth,

    I have just tested a validator with that same boolean expression in JIRA 7.3.5 and JWT 2.2.35, and it works as expected.

    Can you please, double check that you have published the workflow draft and the validator is actually being applied?

  5. Beth Starr reporter

    Yes I published the workflow and it still is not working. I also performed a re-index and it still won't work. I am going to reboot Jira and see if that fixes it.

  6. Fidel Castro Armario repo owner

    It's very strange. The validation is so simple. I would like to see the problem in direct. Can we have a meeting through Skype with screen-share? My user is fidel100r.

  7. Beth Starr reporter

    yes

    Thanks! Beth Starr, CSM Atlassian Systems Consultant Mobile – 740-222-1514

    [BMC-RS logo]

    RightStar 1951 Kidwell Avenue, Suite #110 Vienna, VA 22182

  8. Fidel Castro Armario repo owner

    The problem was that the transition was being executed by JSD's built-in approval mechanism, which seems to be executed by a no-user or a user different from current one.

    Using Assignee instead of current user would solve the problem.

  9. Log in to comment