Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Popup window to choose from members of assignment group

wiltonr
Giga Contributor

I have a UI Action that does a couple of things - assign a ticket to a particular assignment group and change the status of the ticket.   One requirement is that Assigned To cannot be left blank though.   Currently I'm just throwing up an alert to say assigned to must be populated, but if the current assignment group and assigned to are already filled in with something other than the one it needs to be, then that check to see if assigned to is empty doesn't really matter.   We want the user to be able to click the UI action from the form and then be prompted with a dialog box to select the users of that assignment group.   We are currently doing a similar thing by using GlideDialogWindow to backfill the assignment group.   So when the assigned to is populated, if the user is a member of more than one assignment group, we get a popup dialog to choose which assignment group and then it puts that into the assignment group field.   I want to basically do the opposite though.   The UI action says which specific assignment group I want to use, but I want a popup to give a list of its members and let the user select and populate the field.   The Backfill Assignment Group was written by our implementation partner and I can't wrap my head around the UI Page enough to figure out how to reverse it.

7 REPLIES 7

wiltonr
Giga Contributor

Sorry, I'm not really following either suggestion.     I have a custom table (Network Task) and when the task is created (under specific conditions) it is automatically assigned to a specific assignment group with a status of Pending (because there is some research that will have to be done).   When it is ready to assigned to the project team, I had created a UI Action (form button) that assigns it to the Project assignment group and changes the status to Work in Progress.   However, for this particular scenario (when being assigned to the project team) the Assigned To field MUST be populated with a member of the Project group.   Currently, in the UI Action script, it is checking to see if Assigned To is empty and if it is, it throws an alert that says Assigned To must be populated.   When using this button, the Assignment Group field is typically going to be populated with the Network Admin assignment group.   So when the alert comes up, if she clicks OK, then she will still have to manually change the Assignment Group field to Project (or clear it out) before she can populate the Assigned To field.



My preference is to have the form button pop up a box giving her the choices of the members of the Project assignment group, let her choose and then the action will populate assigned to with that user, assignment group with the project group and change the status accordingly.   This might be overkilll - but is it possible to have a UI Action doing all of this?


wiltonr
Giga Contributor

I was able to figure out how to do this so no longer necessary.



Thanks to all,


Rhonda


Hi Rhonda,



I know this is really old post, but please can you help me with the solution you have figured out?



Thanks.