Limit field Reporter to Certain Group

Issue #226 resolved
Fatima created an issue

Hi Fidel!

Could you help in question how could we Limit the field Reporter to Certain User group?For example while creating the issue we would like to select the users in Reporter field from specific group

Comments (12)

  1. Fidel Castro Armario repo owner

    Hi Fatima,

    With JIRA Workflow Toolbox you can check whether the user selected in a User Picker custom field belongs to a group.

    For your particular use case you should insert "Boolean validator with math, date-time or text-string terms" in "Create Issue" transition with the following boolean expression:

    isInGroup(%{00006}, "group name")
    

    Note that:

    • %{00006} is field code for Reporter.
    • You should replace group name with the actual name of your group.
  2. Fatima reporter

    For your particular use case you should insert "Boolean validator with math, date-time or text-string terms" in "Create Issue" transition with the following boolean expression:

    which post function is this?

  3. Fidel Castro Armario repo owner

    That's not a post-function but a validation. If the reporter entered doesn't satisfy the validation, the user will be shown a custom message, and will not be able to create the issue until selected reporter belongs to the desired group.

  4. Fidel Castro Armario repo owner

    I don't understand what you mean with "We have not separate 'Create Issue' transition".

    Are you sharing the same workflow for all the issue types, and you want to apply the validation to only certain issue types?

  5. Fidel Castro Armario repo owner

    I mean the transition which is triggered at issue creation taking the issue to the first status of the workflow. That transition traditionally is called "Create Issue", but in your case I think it's called "Open", the one shown on the left in your screenshot.

  6. Fidel Castro Armario repo owner

    Ok, you are right. I didn't interpret correctly the screenshot.

    Anyway, please, click on step (1), "Open", on the right side of the screenshot. Then you will see that there is a transition called "Create Issue" arriving to that status. This is the transition that is executed at the moment of issue creation.

  7. Log in to comment