mtcoffee

A ServiceNow and DevOps enthusiast. I use this blog to share ideas and learn from others.

  • Custom Social Profile Link

ServiceNow Automatically set Assignment Group

1 minute read

This is a useful tidbit for auto populating assignment groups. ServiceNow does have a few features that make it possible to auto assign groups based on criteria such as:

  • Assignment Lookup Rules
  • Data lookup definitions

However, sometimes a simple client script can offer less overhead. In this case I had the following requirements.

  • When a requester picks a group it will auto set the assignment group to the Configuration Item approver group
  • The requester can accept this or choose to override it
  • If a group is not found on the CI, a pop up will alert them to select it manually

To accomplish this the client script was as follows:

Name : Populate Assignment Group Type : onChange Field Name : cmdb_ci (Configuration Item)

Set that on your table (incident/change etc) and your all set!

Why not Assignment Rule?

I was asked, why not create an assignment rule, after all its built into the product. For example a simple rule under System Policy -> Assignment, defined using this script snippet will work.

Sample snippet:

However it is server side and does not set until after the user saves the record. This would be ideal if you wanted to ā€œHard enforceā€ that the assignment group must be set by the CI, however if your requirement is to allow the user to override then a client script is the preferred route.

Leave a comment

You may also enjoy, servicenow import set coalesce field not working as expected.

less than 1 minute read

Summary Recently I ran into an issue with a ServiceNow Import Set that was configured to coalesce on a single field. The target system contained an Incident ...

Zabbix Alerts and ServiceNow Event Management

3 minute read

Summary https://docs.servicenow.com/bundle/washingtondc-it-operations-management/page/product/event-management/task/t_EMConfigureZabbixConnector.html

Grafana Alerts and ServiceNow Event Management

2 minute read

Summary Grafana is both a log/metric visualization tool and an alerting tool. It can be configured to send its alert data to ServiceNow Event Management, inc...

Building a ServiceNow ITOM Homelab with XCP-NG

Summary For anyone interested in ServiceNow ITOM, thereā€™s no better way to learn than on your own infrastructure that you can tear down and rebuild as needed...

The Devvies 2025 are here! Celebrate your hard work and innovation by submitting your apps today. Join the excitement!

ServiceNow Community servicenow community

  • English (US)
  • English (UK)
  • Portuguese (Brazilian)

developer

  • ServiceNow Community
  • Discussions
  • Developer forum
  • Re: Populate assignment group field through workfl...
  • Subscribe to RSS Feed
  • Mark Question as New
  • Mark Question as Read
  • Float this Question for Current User
  • Printer Friendly Page

Populate assignment group field through workflow based on Cat Item's Select Box values

ronro2

  • Mark as New
  • Report Inappropriate Content

ronro2_0-1732018657817.png

Solved! Go to Solution.

vMalhotra

View solution in original post

  • All forum topics
  • Previous Question
  • Next Question
  • Add Catalog Task Assigned To from Assignment group reference field in Developer forum Thursday
  • Auto populate the Assigned vendor field based on assignment group on work order task( wm_task) in Developer forum Wednesday
  • Populate assignment group field through workflow based on Cat Item's Select Box values in Developer forum Tuesday
  • Change approval policy's decision label in approvals related list of Change request in custom field in Developer forum Monday
  • Autopopulate Assignment group not populating by SYS ID in Developer forum a week ago

servicenow current.assignment_group

ServiceNerd

ServiceNow Advanced Reference Qualifier | How to filter the Assignment group based on Assigned To

Been in a predicament in ServiceNow, where you know the person a task needs to be assigned to, but don’t know the right group? I got you!

In this video, we add an advanced reference qualifier on a dictionary override on the assignment group fields (for incidents) that calls a server side script include to run some funky glideRecord queries and return as back a refined list of group sys_id’s. Its then these groups that are shown when you click the Assignment Group magnifying glass.

https://docs.servicenow.com/en-US/bundle/tokyo-platform-administration/page/script/server-scripting/concept/c_ReferenceQualifiers.html

https://www.servicenow.com/community/developer-forum/dynamic-advanced-reference-qualifier-examples/m-p/1386576

Reference Qualifier bit:

javascript:new global.AssignmentGroupFilter().refineAssignmentGroup(current.assigned_to)

Script Include:

Tags: advanced reference qualifier beth anglin GlideRecord reference field reference qualifier script include servicenerd servicenow admin servicenow demo servicenow tutorial sysid in

You may also like...

servicenow current.assignment_group

How to create a Variable Set

ServiceNow Flow Diagramming

ServiceNow San Diego Flow Diagramming | Flow Designer stuff #Shorts

ServiceNow Hyperlink

ServiceNow: How to embed hyperlinks in work notes | clickable links

  • Next story Flow Designer Error Handling ServiceNow | How to…
  • Previous story ServiceNow GlideAggregate Count | Is it better than GlideRecord getRowCount()

ServiceNerd_JustinMeadows

All Videos / New Features / Tips & Tricks

AI in ServiceNow with Justin Meadows | What does it mean?

February 27, 2023

ServiceNow ChatGPT

New Features / Tips & Tricks

What is ChatGPT and Can We Use it for ServiceNow

December 18, 2022

  • Recent Posts
  • Popular Posts
  • Recent Comments

ServiceNow Process Automation Designer (PAD) | What does it do?

ServiceNow Process Automation Designer (PAD) | What does it do?

December 19, 2023

servicenow current.assignment_group

All Videos / Flow Designer

“Do the Following Until” Flow Logic in ServiceNow Flow Designer

September 1, 2023

Dynamic Flow

Exploring Dynamic Flow and Get Flow Output Logic in ServiceNow Flow Designer!

July 24, 2023

servicenow current.assignment_group

All Videos / Flow Designer / Tips & Tricks

Flow Designer Error Handling ServiceNow | How to…

July 3, 2023

servicenow current.assignment_group

June 11, 2023

ServiceNow Hyperlink

Service Catalog / Tips & Tricks

October 30, 2022

ServiceNow Import Set API

Integrations

ServiceNow Inbound REST API | Import Set API

September 12, 2022

servicenow current.assignment_group

New Features / Shorts

ServiceNow San Diego Polaris | ServiceNow Next Experience UI #SanDiego #Polaris #Shorts

February 7, 2022

ServiceNow Flow Template Builder

Flow Designer

ServiceNow Flow Template Builder | Create a template using Flow Template Builder

October 6, 2022

' src=

  • artificial intelligence business rule client script flow Flow designer Flow designer development flow designer for service catalog flow designer servicenow flow designer servicenow orlando flow designer servicenow training flow design tutorial g form glideajax GlideRecord integration hub onload script include service catalog service catalog in servicenow service catalogue servicenerd servicenow servicenow admin servicenow administrator training servicenow community servicenow demo servicenow developer servicenow developer training servicenow flow servicenow flow designer servicenow flow designer approval servicenow flow logic servicenow glideajax example ServiceNow how to servicenow integration servicenow microsoft teams servicenow new features ServiceNow Next Experience ServiceNow Polaris servicenow reference field ServiceNow San Diego servicenow shorts servicenow training servicenow tutorial subflow

IMAGES

  1. How to Assign a User to a Group in ServiceNow

    servicenow current.assignment_group

  2. Reassignment Count in ServiceNow

    servicenow current.assignment_group

  3. ServiceNow service catalog tasks to Jira tasks

    servicenow current.assignment_group

  4. (Day 10)Servicenow

    servicenow current.assignment_group

  5. ServiceNow Priority Look up ,Data loop up and Assignment rules

    servicenow current.assignment_group

  6. Task Assignment Rules in ServiceNow CSA Tutorial for Beginners

    servicenow current.assignment_group

VIDEO

  1. ServiceNow Best Practice: How to Add ServiceNow Roles to a User Group

  2. How to Find Tasks That Are Assigned to You

  3. Alignment Planner Workspace Introduction

  4. ServiceNow Tutorial || User & Group Administration || Turasys.com (4/30)

  5. Alignment Planner Workspace V2

  6. Integrating Alignment Planner Workspace with Azure DevOps

COMMENTS

  1. Solved: Assignment group

    var agrp = sap.current.variables.assignment_group.name; You can directly write: var agrp = sap.assignment_group.name; This way it will directly get the name of sc_task assignment group. By accessing it through current.variables it is going to the catalog variables and getting the value which has been assigned to it while raising request.

  2. current Assignment group members

    ServiceNow Learn more about ServiceNow products and solutions. Learning Build your skills with instructor-led and online training. ... I have requirement 'Current Assignment group members, plus problem management team and Submitter should be able to cancel problem. User other than those should not be able to cancel the ticket.

  3. Solved: Assignment Group

    @servicenow lath . populate the user location on the incident location field. write the script in record producer form. current.location=producer.requestor.location; After this create an assignment rule . with condition location . and set the desired assignment group. If my answer solved your issue, please mark my answer as Correct & šŸ‘ Helpful

  4. Configure the group type for assignment groups

    Loading... Loading...

  5. ServiceNow Automatically set Assignment Group

    Summary This is a useful tidbit for auto populating assignment groups. ServiceNow does have a few features that make it possible to auto assign groups based on criteria such as: Assignment Lookup Rules Data lookup definitions ... (JSUtil.notNil(current.cmdb_ci)) { current.assignment_group = current.cmdb_ci.support_group; }

  6. Users in an Assignment group are not displayed in the ...

    Users in a specific Assignment group are not displayed/available for selection in the Assigned to field. Skip to page ... Ask questions, give advice, and connect with fellow ServiceNow professionals. Developer Build, test, and deploy applications Documentation Find detailed information about ServiceNow products, apps, features, and releases. ...

  7. Issue populating assignment_group in servicenow via REST API

    Same result. Ticket got created but with no assigned group info. @blendenzo: Can service now has ACL at field level? Like I have mentioned, I was able to create ticket using API but not these two fields. Not sure if Servicenow can restrict update access at field level? If so, why do they do that way? I will double check with my security group ...

  8. Solved: Re: Populate assignment group field through workfl ...

    Hey guys! I have a catalog item, the following one with field called "u_assignment_group".You can see my cat item here below in the screenshot: I want to populate the corresponding field called "assignment_group" in the sc_req_item So if i in the cat item form choose select box option ' minor_update_doc_plan' it should populate the sc_req_item with assignment group ...

  9. ServiceNow Advanced Reference Qualifier

    In this video, we add an advanced reference qualifier on a dictionary override on the assignment group fields (for incidents) that calls a server side script include to run some funky glideRecord queries and return as back a refined list of group sys_id's. Its then these groups that are shown when you click the Assignment Group magnifying glass.

  10. Approval Groups vs Assignment Groups : r/servicenow

    E.g an approval group would have the type of "approval" and the resolver groups can have a type of "resolver". This then distinguishes them. Then in your "assignment_group" column on your table you can set a reference qualifier to ONLY filter down on the type of "resolver". This then prevents stuff being assigned to an approval ...